Merge branch 'fixbug/terminal' into 'mgx_ops'

fixbug: terminal

See merge request pub/MetaGPT!31
This commit is contained in:
洪思睿 2024-04-12 05:57:20 +00:00
commit 43ccb23189
3 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,5 @@
import pytest
from metagpt.const import DATA_PATH, METAGPT_ROOT
from metagpt.tools.libs.terminal import Terminal
@ -13,3 +15,7 @@ def test_terminal():
terminal.run_command("cd data")
output = terminal.run_command("pwd")
assert output.strip() == str(DATA_PATH)
if __name__ == "__main__":
pytest.main([__file__, "-s"])