Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent f9e6386 commit d308a06
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/file_contents_sorter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,22 @@ def test_integration(input_s, argv, expected_retval, output, tmpdir):
assert path.read_binary() == output
assert output_retval == expected_retval


@pytest.mark.parametrize(
("input_s", "argv"),
('input_s', 'argv'),
(
(
b"fee\nFie\nFoe\nfum\n",
["--unique", "--ignore-case"],
b'fee\nFie\nFoe\nfum\n',
['--unique', '--ignore-case'],
),
(
b"fee\nfee\nFie\nFoe\nfum\n",
["--unique", "--ignore-case"],
b'fee\nfee\nFie\nFoe\nfum\n',
['--unique', '--ignore-case'],
),
),
)
def test_integration_invalid_args(input_s, argv, tmpdir):
path = tmpdir.join("file.txt")
path = tmpdir.join('file.txt')
path.write_binary(input_s)

with pytest.raises(SystemExit):
Expand Down

0 comments on commit d308a06

Please sign in to comment.