aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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 missing docstrings for modulesCody Logan
2023-11-17Add test for keyboard interruptCody Logan
2023-11-17Exit program more gracefully on keyboard interruptCody Logan
2023-11-16Add docstring to wikiget packageCody Logan
2023-11-16Additional type checking import blocksCody Logan
2023-11-16Update pyproject.tomlCody Logan
2023-11-16Code cleanup; reorganize some testsCody Logan
2023-11-16Merge branch 'master' into reduce-api-callsCody Logan
2023-11-16Bump version number for releasev0.8.0Cody Logan
2023-11-16Update documentationCody 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-15Add string methods to the File classCody Logan
2023-11-15Revise import and docstringsCody Logan
2023-11-15Convert File.dest from a string to a Path (#14)Cody Logan
2023-11-15Merge pull request #13 from clpo13/testing-tmp-folderCody Logan
Change to temp directory when running tests
2023-11-15Add missing type annotationsCody 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-08Add and refine docstrings in src folderCody Logan
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-08Ensure downloaded file handler is always closedCody Logan
2023-11-08Add git-blame ignore file for Black style change revisionCody Logan
2023-11-08Conditionally import modules used for type checkingCody Logan
2023-11-08Revise type annotations per PEP 604Cody Logan
2023-11-08Move logger variable creation to after log configurationCody Logan
2023-11-07Improve logging optimizationCody Logan
Defer string formatting until needed by removing f-strings in log messages.
2023-11-07Use type checking block for importCody Logan
2023-11-07Use multiple context managers in a single with blockCody Logan
2023-11-07Simplify return logic of process_downloadCody Logan
2023-11-07Remove unnecessary pass and import statementsCody Logan
2023-11-07Fix some pytest style issuesCody Logan
2023-11-07Merge pull request #12 from clpo13/improve-testsCody Logan
Improve tests and test coverage
2023-11-07Add requests_mock to Actions configCody 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