diff options
| author | Cody Logan <cody@lokken.dev> | 2023-10-24 11:00:56 -0700 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-10-24 11:04:54 -0700 |
| commit | 93ed73f700e1f6da32418b0188c2a8f8122f1c0d (patch) | |
| tree | 6a179b38aee4fc6ebc41294fedc2d1f91b4fb0d8 /tests/test_dl.py | |
| parent | 0b700624f79461a0d9f52eeb0370d15f16d49c90 (diff) | |
| download | wikiget-93ed73f700e1f6da32418b0188c2a8f8122f1c0d.tar.gz wikiget-93ed73f700e1f6da32418b0188c2a8f8122f1c0d.zip | |
Use per-module loggers and tweak initial log config
Diffstat (limited to 'tests/test_dl.py')
| -rw-r--r-- | tests/test_dl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_dl.py b/tests/test_dl.py index fc68733..839cdee 100644 --- a/tests/test_dl.py +++ b/tests/test_dl.py @@ -29,7 +29,7 @@ from wikiget.wikiget import construct_parser class TestQueryApi: parser = construct_parser() - def test_query_api(self, caplog): + def test_query_api(self, caplog: pytest.LogCaptureFixture) -> None: caplog.set_level(logging.DEBUG) args = self.parser.parse_args(["File:Example.jpg"]) file, site = query_api("Example.jpg", "commons.wikimedia.org", args) @@ -40,7 +40,7 @@ class TestQueryApi: class TestPrepDownload: parser = construct_parser() - def test_prep_download(self): + def test_prep_download(self) -> None: args = self.parser.parse_args(["File:Example.jpg"]) file = prep_download(args.FILE, args) assert file is not None |
