aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-11-30Have functions return an exit code instead of calling sys.exitCody Logan
2023-11-17Refactor batch download testsCody Logan
2023-11-17Cache site connections for reuse in batch downloadsCody Logan
2023-11-17Merge branch 'master' into reduce-api-callsCody Logan
2023-11-17Add test for keyboard interruptCody Logan
2023-11-16Additional type checking import blocksCody 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-16Add tests for file string methodsCody Logan
2023-11-15Revise import and docstringsCody Logan
2023-11-15Convert File.dest from a string to a Path (#14)Cody Logan
2023-11-15Use monkeypatch.chdir instead of os.chdirCody Logan
2023-11-14Docstring type fixesCody 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-08Change to a temporary directory before running testsCody Logan
Some tests will throw errors if files or directories with certain names exist in the current working directory when pytest is run, such as Example.jpg.
2023-11-08Refactor wikiget.cli testsCody Logan
2023-11-08Add and refine docstrings in tests folder.Cody Logan
2023-11-08Switch to pathlib for file processingCody Logan
2023-11-08Conditionally import modules used for type checkingCody Logan
2023-11-08Revise type annotations per PEP 604Cody Logan
2023-11-07Fix some pytest style issuesCody Logan
2023-11-07Test query_api when an APIError is raisedCody Logan
2023-11-07Emit a log message when authenticating with a private wikiCody Logan
2023-11-07Add tests for File equalityCody 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-06Add explanatory comment to query_api testCody Logan
2023-11-03Revise query_api test to use mock objectsCody Logan
2023-11-03Test for exceptions in connect_to_siteCody 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-01Add tests for main program entry pointCody Logan
2023-11-01Condense parser construction logicCody Logan
2023-11-01Make process_download return an exit code instead of exiting directlyCody Logan
2023-11-01Add some explanatory comments to testsCody Logan
2023-11-01Test connect_to_site using mockingCody Logan
2023-11-01Refactor download processing code and add some testsCody Logan
2023-10-30Create temporary batch file for one testCody Logan
2023-10-30Check for existing files earlier to avoid unnecessary API callsCody Logan
2023-10-30Additional tests for batch file parsingCody Logan
2023-10-30Code cleanupCody Logan
2023-10-27Fix error in dl test (still non-functional)Cody Logan
2023-10-27Refactor args construction in testsCody Logan