@@ -17,33 +17,40 @@ def test_cli_group():
1717def test_set_max_workers_command ():
1818 """Test the set_max_workers command."""
1919 runner = CliRunner ()
20-
20+
2121 # First check if the command exists in the CLI
2222 result = runner .invoke (cli , ["--help" ])
2323 assert result .exit_code == 0
24-
24+
2525 # The command decorator syntax in __main__.py is incorrect
2626 # It should be @cli.command() or @cli.command("command-name")
2727 # Currently it's using the description as the command name
2828 # So the command is registered with a long name
29-
29+
3030 # Test with the actual registered command name
31- result = runner .invoke (cli , ["Limits the number of worker threads used by cachier." , "4" ])
31+ result = runner .invoke (
32+ cli , ["Limits the number of worker threads used by cachier." , "4" ]
33+ )
3234 assert result .exit_code == 0
33-
35+
3436 # Test with invalid input (non-integer)
35- result = runner .invoke (cli , ["Limits the number of worker threads used by cachier." , "invalid" ])
37+ result = runner .invoke (
38+ cli ,
39+ ["Limits the number of worker threads used by cachier." , "invalid" ],
40+ )
3641 assert result .exit_code != 0
37-
42+
3843 # Test without argument
39- result = runner .invoke (cli , ["Limits the number of worker threads used by cachier." ])
44+ result = runner .invoke (
45+ cli , ["Limits the number of worker threads used by cachier." ]
46+ )
4047 assert result .exit_code != 0
4148
4249
4350def test_set_max_workers_function ():
4451 """Test the set_max_workers function directly."""
4552 # This tests the function import and ensures it's callable
4653 # The actual functionality is tested in core tests
47-
54+
4855 # Verify the function is callable
49- assert callable (set_max_workers )
56+ assert callable (set_max_workers )
0 commit comments