diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-16 11:50:52 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-16 11:50:52 -0800 |
| commit | 5e7e0b84c632641ba12041b2aa516b4a27245de6 (patch) | |
| tree | 6306ca6a238a0b95dd9038c64dd111b582941807 /tests/test_dl.py | |
| parent | 2f3074e1b2a62cbd5e32778abc0ff82027c1ce3b (diff) | |
| parent | abf8d1cbf22bb5aa5a1dc8a7380177af05bb4b23 (diff) | |
| download | wikiget-5e7e0b84c632641ba12041b2aa516b4a27245de6.tar.gz wikiget-5e7e0b84c632641ba12041b2aa516b4a27245de6.zip | |
Merge branch 'master' into reduce-api-calls
Diffstat (limited to 'tests/test_dl.py')
| -rw-r--r-- | tests/test_dl.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_dl.py b/tests/test_dl.py index b0822cf..10f5fd5 100644 --- a/tests/test_dl.py +++ b/tests/test_dl.py @@ -338,7 +338,6 @@ class TestDownload: """ file = File(name="Example.jpg") file.image = Mock() - file.image.exists = True file.image.imageinfo = { "url": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg", "size": 9022, @@ -506,7 +505,7 @@ class TestDownload: self, mock_file: File, caplog: pytest.LogCaptureFixture ) -> None: """Test that a warning message is logged if no file info was returned.""" - mock_file.image.exists = False + mock_file.image.imageinfo = {} args = parse_args(["File:Example.jpg"]) errors = download(mock_file, args) |
