Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds --verify #195

Merged
merged 15 commits into from
Nov 3, 2024
Prev Previous commit
Next Next commit
Update tests/test_end_to_end.py
Co-authored-by: Florian Rathgeber <florian.rathgeber@gmail.com>
  • Loading branch information
jspaezp and kynan authored Oct 27, 2024
commit 0955d2b6eefeecdb3296f0610b25f729bdc1155a
5 changes: 1 addition & 4 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
@@ -70,10 +70,7 @@ def test_end_to_end_stdin(input_file: str, expected_file: str, args: List[str],

if verify:
# When using stin, the dry run flag is disregarded.
if input_ != expected:
assert pc.returncode == 1
else:
assert pc.returncode == 0
assert pc.returncode == 1 if input_ != expected else 0
else:
assert output == expected
assert pc.returncode == 0