Add unittest for QaEngineer in software company workflow

This commit is contained in:
voidking 2024-11-05 16:33:49 +08:00
parent bfe15e34a8
commit 7464b9fc5f
2 changed files with 21 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -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"])