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

Tatsh / wiswa / 25646753383 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 11 May 2026 02:14AM UTC
Files 17
Run time 0s
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

10 May 2026 11:23PM UTC coverage: 100.0%. Remained the same
25646753383.3

push

github

Tatsh
extensions: tolerate missing `priority` when sorting custom badges

`docs/badges.rst.j2` and `README.md.j2` both sort
`settings.custom_project_badges` with
`sort(attribute='priority')`. Under `StrictUndefined`, Jinja2's
built-in sort raises `UndefinedError` if any entry lacks the
attribute, so projects that define `custom_project_badges` without an
explicit `priority` (a contract the surrounding `< 0` / `>= 0` guards
already treat as defaulting to `0`) crashed at render time:

  jinja2.exceptions.UndefinedError: 'dict object' has no attribute
  'priority'

Add a `sort_dicts(value, key, default=0)` Jinja2 filter (new
`SortDictsExtension`) that sorts an iterable of mappings by a key and
falls back to the supplied default when the key is absent, mirroring
`sort(attribute=...)` but without the strict-undefined cliff. Switch
the two badge templates to use it; entries without `priority` now sort
into the `>= 0` group alongside the other default-priority badges,
matching the existing render-time guards.

Signed-off-by: Andrew Udvare <audvare@gmail.com>

485 of 485 branches covered (100.0%)

Branch coverage included in aggregate %.

2513 of 2513 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 25646753383.3
  • Tree
  • List 17
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25646753383
  • 02b0e83d on github
  • Prev Job for on master (#25641918150.2)
  • Next Job for on master (#25649113488.4)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc