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

zostera / django-icons / 37193956757
100%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 10:00AM UTC
Jobs 1
Files 12
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:00AM UTC coverage: 100.0% (+3.1%) from 96.864%
37193956757

push

github

web-flow
Fix a shared variant pattern cache, and cover every branch (#662)

Coverage was 97%. Writing the tests for the gaps turned one of them up as a
bug rather than a hole.

_get_image_variant_attributes_regex cached the compiled patterns on a class
attribute and reached it through the MRO, so `cls._variant_attributes_regex`
found the parent's dict. The first renderer to compile decided the patterns
for every class in the process, and mutating the found dict wrote into the
parent. An ImageRenderer subclass that overrides
get_image_variant_attributes_pattern therefore had its patterns, defaults
included, silently ignored, depending on render order. In a long running
server that is order dependent behaviour across requests.

The cache is now per class, keyed on cls.__dict__ rather than attribute
lookup, and the class level declaration is gone because it would otherwise
satisfy that check and freeze an empty cache.

This was not theoretical: the new tests passed alone and failed in a full run,
which is what exposed it.

The remaining gaps were ordinary: variant attribute defaults applied from a
name, from a keyword argument and from neither; a variant with no default left
unset; and `content` in the ICONS settings given as one value, a list, and a
nested icon, which nothing covered.

fail_under = 100 matches the block django-marina and django-bootstrap5 carry,
comment included and byte-identical.

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

56 of 56 branches covered (100.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

227 of 227 relevant lines covered (100.0%)

16.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37193956757.1 04 Oct 2026 10:01AM UTC 12
100.0
GitHub Action Run
Source Files on build 37193956757
  • Tree
  • List 12
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • abc2b133 on github
  • Prev Build on main (#37191840625)
  • Next Build on main (#37198032667)
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