ThePornDatabase / namer

Renames adult video files so that the plex/jellyfin plugins and stash script will match without user input. Runs server or command mode.
https://theporndb.net
184 stars 29 forks source link

decouple server from namer, reuse for a tpdb fake #42

Closed 4c0d3r closed 2 years ago

4c0d3r commented 2 years ago

Decouple webserver from namer for easy reuse. Reuse webserver to make a ParrotWebserver. Use ParrotWebserver for a fake tpdb for testing.

Todo: finish configuring response from fake tpdb update the test to use Fake_tpdb.

codecov-commenter commented 2 years ago

Codecov Report

Merging #42 (7e14e88) into main (f31deb7) will decrease coverage by 0.14%. The diff coverage is 82.72%.

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   87.12%   86.98%   -0.15%     
==========================================
  Files          27       28       +1     
  Lines        2975     3058      +83     
  Branches      396      405       +9     
==========================================
+ Hits         2592     2660      +68     
- Misses        240      250      +10     
- Partials      143      148       +5     
Impacted Files Coverage Δ
test/web/namer_web_test.py 84.70% <68.29%> (-8.28%) :arrow_down:
test/web/parrot_webserver.py 85.00% <85.00%> (ø)
namer/watchdog.py 86.39% <100.00%> (-0.40%) :arrow_down:
namer/web/server.py 94.02% <100.00%> (+1.72%) :arrow_up:
test/web/namer_web_pageobjects.py 75.15% <100.00%> (+0.77%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f31deb7...7e14e88. Read the comment docs.