aboutsummaryrefslogtreecommitdiff
path: root/tests/test_dl.py
AgeCommit message (Collapse)Author
2023-11-17Cache site connections for reuse in batch downloadsCody Logan
2023-11-16Code cleanup; reorganize some testsCody Logan
2023-11-16Merge branch 'master' into reduce-api-callsCody Logan
2023-11-16Fix bug when downloading non-local files from a wikiCody Logan
Revert to the pre-v0.6.0 method of checking for file existence. A change introduced in v0.6.0 caused the check to fail if the file existed only in a shared repository and not locally on the requested wiki.
2023-11-16Reuse existing Site object when possible in batch downloadsCody Logan
Previously, every file downloaded in a batch would create a new Site object. Now, the Site object created by the first file will be reused by subsequent files if it matches the file's requested host, which will significantly speed up the download process, assuming all files are from the same site. This is a quick and dirty fix which could be improved to better handle situations where there are a mix of files from different sites.
2023-11-15Convert File.dest from a string to a Path (#14)Cody Logan
2023-11-14Use fixtures to create test filesCody Logan
This reduces the number of temporary folders and files created during testing. Additionally, an actual JPEG is created for a couple tests instead of using random text for the contents.
2023-11-08Add and refine docstrings in tests folder.Cody Logan
2023-11-08Switch to pathlib for file processingCody Logan
2023-11-07Fix some pytest style issuesCody Logan
2023-11-07Reduce duplicated code in dl testsCody Logan
2023-11-07Full coverage on dl moduleCody Logan
2023-11-06Additional download tests using requests_mockCody Logan
2023-11-06Additional download testsCody Logan
2023-11-06Simplify mock usage in testsCody Logan
2023-11-06Be more consistent in use of mocking methodCody Logan
2023-11-06Test that prep_download returns the right File objectCody Logan
2023-11-03Move from unittest.mock to pytest's monkeypatch where feasibleCody Logan
2023-11-01Rename some symbols and functions to better match their purposeCody Logan
2023-11-01Condense parser construction logicCody Logan
2023-11-01Make process_download return an exit code instead of exiting directlyCody Logan
2023-11-01Refactor download processing code and add some testsCody Logan
2023-10-30Check for existing files earlier to avoid unnecessary API callsCody Logan
2023-10-27Fix error in dl test (still non-functional)Cody Logan
2023-10-27Refactor args construction in testsCody Logan
2023-10-24Separate download and client testsCody Logan
2023-10-24Use per-module loggers and tweak initial log configCody Logan
2023-10-13Refactor parsing logic and revise exception handlingCody Logan
2023-10-09Style cleanupCody Logan
2023-10-09Add some tests for download functionsCody Logan