fix: improve test assertion robustness in test_cli_with_cookies

This commit is contained in:
synapz-org
2025-10-26 09:54:34 -04:00
parent 8d21d4ea0a
commit 8cfe427b15

View File

@@ -68,6 +68,9 @@ def test_cli_with_cookies(tmp_path):
]) ])
assert result.exit_code == 0 assert result.exit_code == 0
mock_download.assert_called_once() # Verify the call was made with correct arguments including cookies_file
# Check that cookies file was passed as third positional argument mock_download.assert_called_once_with(
assert mock_download.call_args[0][2] == str(cookies_file) 'https://x.com/i/spaces/1ZkKzZWnVRRKv',
'.',
str(cookies_file)
)