mirror of
https://github.com/Dasemu/x-space-downloader.git
synced 2026-10-13 13:39:45 +00:00
fix: improve test assertion robustness in test_cli_with_cookies
This commit is contained in:
@@ -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)
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user