aboutsummaryrefslogtreecommitdiff
path: root/tests/test_dl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_dl.py')
-rw-r--r--tests/test_dl.py2
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)