• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zostera / django-bootstrap3 / 37195016725
100%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 10:20AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Oct 2026 10:19AM UTC coverage: 88.623% (+9.9%) from 78.728%
37195016725

push

github

web-flow
Cover pagination with tests (#1157)

get_pagination_context had no tests at all: 63 statements behind the public
bootstrap_pagination tag, in a package with a lot of users. The tag itself and
bootstrap_url_replace_param were untested too.

24 tests now cover the page window, both clamps, the URL rewriting including
an existing page parameter and a configurable parameter name, the extra
string, the size modifiers, and the two template tags end to end.

Two of those tests started out proving nothing. They were named for the clamp
branches but used inputs that never clamp, and passed anyway. Page 4 of 10
with a window of 5 is what drives pages_back below 1; page 7 is what drives
pages_forward past the last page.

The guard at `if half_page_num < 0` is removed. pages_to_show is coerced with
int() and anything below 1 raises on the line above, so floor(n / 2) cannot be
negative. It was unreachable rather than defensive.

The file goes from 55% to 93%, and the package from 79% to 89%. The rest of
the gap is in utils.py, forms.py and renderers.py, which follow separately.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

202 of 252 branches covered (80.16%)

Branch coverage included in aggregate %.

686 of 750 relevant lines covered (91.47%)

14.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37195016725.1 04 Oct 2026 10:21AM UTC 13
88.62
GitHub Action Run
Source Files on build 37195016725
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • fe1061a6 on github
  • Prev Build on main (#37194985681)
  • Next Build on main (#37195891585)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc