ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

test/code cleanup #199

Closed buhman closed 7 years ago

buhman commented 7 years ago

This replaces the old tox configuration with one more consistent with other ptpb projects.

Because this also adds flake8, several style/flake/lint issues were also semi-automatically resolved.

test_paste_mangle was also significantly refactored.

codecov-io commented 7 years ago

Codecov Report

Merging #199 into master will increase coverage by 0.02%. The diff coverage is 92.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #199      +/-   ##
==========================================
+ Coverage   76.83%   76.85%   +0.02%     
==========================================
  Files          17       17              
  Lines         846      847       +1     
==========================================
+ Hits          650      651       +1     
  Misses        196      196
Impacted Files Coverage Δ
pb/namespace/views.py 42.1% <ø> (ø) :arrow_up:
pb/logging.py 100% <ø> (ø) :arrow_up:
pb/__main__.py 0% <0%> (ø) :arrow_up:
runonce.py 0% <0%> (ø)
pb/pb.py 95.34% <100%> (ø) :arrow_up:
pb/paste/handler.py 76.47% <100%> (-0.68%) :arrow_down:
pb/paste/model.py 92.15% <100%> (ø) :arrow_up:
pb/util.py 89.53% <100%> (+0.12%) :arrow_up:
pb/cache.py 65.45% <100%> (-1.22%) :arrow_down:
pb/config.py 100% <100%> (ø) :arrow_up:
... and 7 more

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 622d416...7616170. Read the comment docs.