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

zostera / django-bootstrap4 / 37196601546
100%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 10:49AM UTC
Jobs 1
Files 14
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:49AM UTC coverage: 90.055% (+3.0%) from 87.091%
37196601546

push

github

web-flow
Cover pagination with tests (#905)

First of three passes toward 100%, mirroring the series done in
django-bootstrap3 (#1157, #1158, #1159).

get_pagination_context had no tests at all: 62 statements behind the public
bootstrap_pagination tag. The tag itself and bootstrap_url_replace_param were
untested too.

24 tests cover the page window and both clamps, the URL handling, the size and
justify-content modifiers, and the two template tags end to end.

The URL behaviour differs from django-bootstrap3 and the tests say so. This
package parses and rebuilds the URL with urlparse and urlencode rather than
stripping the page parameter with regular expressions, so an existing
page=N survives into the base URL. That is harmless: pagination.html builds
every link with bootstrap_url_replace_param, which overwrites the parameter.
I checked the template before concluding it was not a bug.

The guard at `if half_page_num < 0` is removed, as in django-bootstrap3.
pages_to_show is coerced with int() and anything below 1 raises on the line
above, so floor(n / 2) cannot be negative.

The file goes from 81% to 93%, the package from 87% to 90%.

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

245 of 286 branches covered (85.66%)

Branch coverage included in aggregate %.

742 of 810 relevant lines covered (91.6%)

14.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37196601546.1 04 Oct 2026 10:50AM UTC 14
90.05
GitHub Action Run
Source Files on build 37196601546
  • Tree
  • List 14
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • db9d4b58 on github
  • Prev Build on main (#37196328135)
  • Next Build on main (#37197439560)
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