arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.59k stars 594 forks source link

Add tests for public view page #574

Closed JeanFred closed 6 years ago

JeanFred commented 6 years ago

In cb2fc2e8 was added a public page, which lists services marked as public.

This adds tests for this page, covering all cases.

codecov-io commented 6 years ago

Codecov Report

Merging #574 into master will increase coverage by 0.41%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #574      +/-   ##
==========================================
+ Coverage   80.53%   80.95%   +0.41%     
==========================================
  Files          43       45       +2     
  Lines        2846     2893      +47     
  Branches      173      173              
==========================================
+ Hits         2292     2342      +50     
+ Misses        495      492       -3     
  Partials       59       59
Impacted Files Coverage Δ
cabot/templates/cabotapp/_service_public_list.html 100% <0%> (ø)
cabot/templates/cabotapp/service_public_list.html 100% <0%> (ø)
cabot/cabotapp/views.py 72.13% <0%> (+0.54%) :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 5040c55...691b93e. Read the comment docs.