From 93ed73f700e1f6da32418b0188c2a8f8122f1c0d Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 24 Oct 2023 11:00:56 -0700 Subject: Use per-module loggers and tweak initial log config --- tests/test_dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_dl.py') 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 -- cgit v1.2.3