Commit Graph

741 Commits

Author SHA1 Message Date
Serene-Arc
af348a05dd Add some integration tests 2021-04-18 16:44:06 +03:00
Serene-Arc
2b9dc1b96c Allow subreddits and multireddits to fail individually 2021-04-18 16:44:06 +03:00
Serene-Arc
fc6e5872b2 Add log entry at end of program 2021-04-18 16:44:06 +03:00
Serene-Arc
6657f0803d Fix bug with users in un-authenticated sessions 2021-04-18 16:44:06 +03:00
Serene-Arc
3e18997652 Move logfiles into configuration directory on OS 2021-04-18 16:44:06 +03:00
Serene-Arc
6d6327a396 Add function to calculate all existing file hashes if wanted 2021-04-18 16:44:06 +03:00
Serene-Arc
f941161014 Add much more logging 2021-04-18 16:44:06 +03:00
Serene-Arc
312769cb66 Remove unused file 2021-04-18 16:44:06 +03:00
Serene-Arc
f7989ca518 Add method to sanitise subreddit inputs 2021-04-18 16:44:06 +03:00
Serene-Arc
d3c8897f6a Fix bug where file extension is never specified for text posts 2021-04-18 16:44:05 +03:00
Serene-Arc
945116063f Allow for ID or URL to be provided for submissions 2021-04-18 16:44:05 +03:00
Serene-Arc
3703d2b9b9 Load config from arguments first 2021-04-18 16:44:05 +03:00
Serene-Arc
50531c7b3e Switch from argparse to click 2021-04-18 16:44:05 +03:00
Serene-Arc
dd522c18d4 Add missing options to Configuration 2021-04-18 16:44:05 +03:00
Serene-Arc
f8347e2d31 Add function to process click contexts for config 2021-04-18 16:44:05 +03:00
Serene-Arc
27a8b497a8 Add click to requirements 2021-04-18 16:44:05 +03:00
Serene-Arc
271c0b989d Abstract configuration into class 2021-04-18 16:44:05 +03:00
Serene-Arc
92386000d8 Implement missed test 2021-04-18 16:44:05 +03:00
Serene-Arc
48233fad36 Update tests with new valid links 2021-04-18 16:44:05 +03:00
Serene-Arc
1046bcdf69 Add last few tests for RedditDownloader 2021-04-18 16:44:05 +03:00
Serene-Arc
d78c4ca78e Add indexing for multiple resources from one submission 2021-04-18 16:44:05 +03:00
Serene-Arc
eca5da7f46 Add test for resource 2021-04-18 16:44:05 +03:00
Serene-Arc
25f70463f3 Allow for single root folder 2021-04-18 16:44:05 +03:00
Serene-Arc
839b6f50a9 Update regex for finding extension 2021-04-18 16:44:05 +03:00
Serene-Arc
a471629287 Convert some strings to f-strings 2021-04-18 16:44:05 +03:00
Serene-Arc
09e42ff5f9 Add some more tests for downloader 2021-04-18 16:44:05 +03:00
Serene-Arc
d2cc3e8b6a Add authenticated Reddit instance fixture 2021-04-18 16:44:05 +03:00
Serene-Arc
f138b9210e Add another mark 2021-04-18 16:44:05 +03:00
Serene-Arc
14b63487bc Immediately write token to disk in case it is unused 2021-04-18 16:44:05 +03:00
Serene-Arc
cfd92a8d14 Add some logging output 2021-04-18 16:44:05 +03:00
Serene-Arc
1f62a7ccd6 Fix function return 2021-04-18 16:44:05 +03:00
Serene-Arc
d8a767e8da Fix option default 2021-04-18 16:44:05 +03:00
Serene-Arc
933be21392 Update tests 2021-04-18 16:44:05 +03:00
Serene-Arc
afe618916b Make sure refresh token is always written to file 2021-04-18 16:44:05 +03:00
Serene-Arc
326eb484cc Add file to gitignore 2021-04-18 16:44:05 +03:00
Serene-Arc
db6c64d0ab Fix some tests 2021-04-18 16:44:05 +03:00
Serene-Arc
7d30af3559 Add empty authenticator 2021-04-18 16:44:05 +03:00
Serene-Arc
735833503f Fix wrong if condition 2021-04-18 16:44:05 +03:00
Serene-Arc
862121cac6 Fix OAuth2 2021-04-18 16:44:05 +03:00
Serene-Arc
36f516e3f0 Re-implement OAuth2 2021-04-18 16:44:05 +03:00
Serene-Arc
95876b3400 Fix typing 2021-04-18 16:44:05 +03:00
Serene-Arc
7c2b7b0e83 Move scope regex parsing 2021-04-18 16:44:05 +03:00
Serene-Arc
dd1831b0ea Remove unimplemented test 2021-04-18 16:44:05 +03:00
Serene-Arc
33f4947456 Add default scopes to configuration file 2021-04-18 16:44:05 +03:00
Serene-Arc
cf1029de80 Fix error with verbose argument settings 2021-04-18 16:44:05 +03:00
Serene-Arc
1422591bf4 Change quotes 2021-04-18 16:44:05 +03:00
Serene-Arc
5a2e045c77 Add OAuth2 class 2021-04-18 16:44:05 +03:00
Serene-Arc
aeb9afdc66 Rename file with custom exceptions 2021-04-18 16:44:05 +03:00
Serene-Arc
b705c31630 Add some more tests for RedditDownloader 2021-04-18 16:44:05 +03:00
Serene-Arc
6f86dbd552 Add error 2021-04-18 16:44:05 +03:00