From d308a0620c639c19b4829345bb5ecef9d3f6c946 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 02:00:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/file_contents_sorter_test.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/file_contents_sorter_test.py b/tests/file_contents_sorter_test.py index dfaed7b6..f178ae6e 100644 --- a/tests/file_contents_sorter_test.py +++ b/tests/file_contents_sorter_test.py @@ -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):