From e8da17d8c6b7fd879e196ae425b8e62c78e579fe Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 8 Nov 2023 09:56:10 -0800 Subject: Switch to pathlib for file processing --- tests/test_dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3