diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-08 09:56:10 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-08 09:56:10 -0800 |
| commit | e8da17d8c6b7fd879e196ae425b8e62c78e579fe (patch) | |
| tree | d782d7c1b8a88fcab69820d18a788e377f82c454 /tests/test_dl.py | |
| parent | 456316f882834c33e90a2ddfa8d4c5e47966dc5e (diff) | |
| download | wikiget-e8da17d8c6b7fd879e196ae425b8e62c78e579fe.tar.gz wikiget-e8da17d8c6b7fd879e196ae425b8e62c78e579fe.zip | |
Switch to pathlib for file processing
Diffstat (limited to 'tests/test_dl.py')
| -rw-r--r-- | tests/test_dl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_dl.py b/tests/test_dl.py index 6075515..c9f26dc 100644 --- a/tests/test_dl.py +++ b/tests/test_dl.py @@ -378,7 +378,7 @@ class TestDownload: def test_download_os_error( self, mock_file: File, caplog: pytest.LogCaptureFixture ) -> None: - with patch("wikiget.dl.open") as mock_open: + with patch("wikiget.dl.Path.open") as mock_open: mock_open.side_effect = OSError("write error") args = parse_args(["File:Example.jpg"]) errors = download(mock_file, args) |
