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:
Vijay Janapa Reddi
2026-01-28 17:36:20 -05:00
parent eb84df491e
commit 8f9481b508

View File

@@ -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):