diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-15 10:02:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-15 10:02:48 -0800 |
| commit | 55a5311ee4da639a65bd60622315f3fff6936c9a (patch) | |
| tree | 285f960d4a7afe9d27ecca51e86e7f00fb914d22 /tests/test_logging.py | |
| parent | 96316c8be7bc21617ec5333f87864a0f002ebaa4 (diff) | |
| parent | ba782d54aa70a1faf6bf6cdcaeb446f7b4c503db (diff) | |
| download | wikiget-55a5311ee4da639a65bd60622315f3fff6936c9a.tar.gz wikiget-55a5311ee4da639a65bd60622315f3fff6936c9a.zip | |
Merge pull request #13 from clpo13/testing-tmp-folder
Change to temp directory when running tests
Diffstat (limited to 'tests/test_logging.py')
| -rw-r--r-- | tests/test_logging.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_logging.py b/tests/test_logging.py index 2fd95cd..8d58cdf 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -39,9 +39,9 @@ class TestLogging: adapter.warning("test log") assert "[Example.jpg] test log" in caplog.text - def test_file_logging(self, tmp_path: Path) -> None: + def test_file_logging(self) -> None: """Logging to a file should create the file in the specified location.""" - logfile_location = tmp_path / "test.log" + logfile_location = Path("test.log") args = parse_args(["File:Example.jpg", "-l", str(logfile_location)]) configure_logging(args.verbose, args.logfile, quiet=args.quiet) assert logfile_location.is_file() |
