mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
Add unittest for QaEngineer in software company workflow
This commit is contained in:
parent
bfe15e34a8
commit
7464b9fc5f
2 changed files with 21 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -30,5 +30,12 @@ def test_software_company(new_filename):
|
|||
logger.info(result.output)
|
||||
|
||||
|
||||
def test_software_company_with_run_tests():
|
||||
args = ["Make a cli snake game", "--run-tests", "--n-round=8"]
|
||||
result = runner.invoke(app, args)
|
||||
logger.info(result.output)
|
||||
assert "unittest" in result.output.lower() or "pytest" in result.output.lower()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__, "-s"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue