From 4e155d0e05fa1b1f3bddabac7a6c4b87c1afea81 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 31 May 2025 01:01:24 +0800 Subject: [PATCH] Refactor test argument order in CLI security tests Reordered arguments in the test_filter_with_other_options method for better readability and consistency. This change improves clarity in the test setup. --- tests/test_cli_security.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_cli_security.py b/tests/test_cli_security.py index 59a2408..69eea30 100644 --- a/tests/test_cli_security.py +++ b/tests/test_cli_security.py @@ -58,20 +58,18 @@ class TestCLISecurityFilters: def test_filter_with_other_options(self): """Test filter option combined with other options.""" - parser = create_parser() - - # Test with streaming and output directory + parser = create_parser() # Test with streaming and output directory args = parser.parse_args( [ "x", "test.tzst", + "file1.txt", + "file2.txt", "--filter", "tar", "--streaming", "-o", "output_dir", - "file1.txt", - "file2.txt", ] ) assert args.filter == "tar"