mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-01 01:59:10 -05:00
fix(test): update assertion to match actual error message
The test checked for "invalid" or "error" but the actual message says "Command Not Found" and "not a valid command".
This commit is contained in:
@@ -383,7 +383,8 @@ class TestErrorHandling:
|
||||
code, stdout, stderr = run_tito(["nonexistent_command"])
|
||||
assert code != 0
|
||||
combined = stdout + stderr
|
||||
assert "invalid" in combined.lower() or "error" in combined.lower()
|
||||
# Check for "not found" or "not a valid" (the actual error message text)
|
||||
assert "not found" in combined.lower() or "not a valid" in combined.lower()
|
||||
|
||||
@pytest.mark.quick
|
||||
def test_invalid_module_number_handled(self):
|
||||
|
||||
Reference in New Issue
Block a user