fixbug: terminal

This commit is contained in:
莘权 马 2024-04-08 23:54:55 +08:00
parent b5d79a378a
commit d8aea069fa
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"])