Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Apr 4, 2024
1 parent 2439c42 commit fa47c27
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/commands/gen/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ def test_validate_tests(create_package, capsys):
]

for test, error in tests:
with pytest.raises(SystemExit) as e:
package_util.validate_test(os.path.join(package_path, "in", test))
assert e.type == SystemExit
assert e.value.code == 1
captured = capsys.readouterr()
assert error in captured.out, f"Expected error not found in output: {captured.out}"
valid, msg = package_util.validate_test(os.path.join(package_path, "in", test))
assert not valid
assert error in msg

0 comments on commit fa47c27

Please sign in to comment.