fix: improve test assertion robustness in test_cli_with_cookies

This commit is contained in:
synapz-org committed 2025-10-26 09:54:34 -04:00
1 parent 8d21d4ea0a
commit 8cfe427b15
1 file changed
+6 -3
+6 -3
View File
@@ -68,6 +68,9 @@ def test_cli_with_cookies(tmp_path):
])
assert result.exit_code == 0
mock_download.assert_called_once()
# Check that cookies file was passed as third positional argument
assert mock_download.call_args[0][2] == str(cookies_file)
# Verify the call was made with correct arguments including cookies_file
mock_download.assert_called_once_with(
'https://x.com/i/spaces/1ZkKzZWnVRRKv',
'.',
str(cookies_file)
)