aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-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
2023-10-24Separate download and client testsCody Logan
2023-10-24Use per-module loggers and tweak initial log configCody Logan
2023-10-24Revise logging testsCody Logan
2023-10-23Initial logging testsCody Logan
2023-10-23Reorganize tests using fixturesCody Logan
2023-10-20Reorganize File classCody Logan
2023-10-17Clean up exception handling and error messagesCody Logan
2023-10-13Refactor parsing logic and revise exception handlingCody Logan
2023-10-13Update copyright yearCody Logan