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

Tatsh / wiswa / 25646753383
100%

Build:
DEFAULT BRANCH: master
Ran 11 May 2026 02:14AM UTC
Jobs 5
Files 17
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

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

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 %.

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

2513 of 2513 relevant lines covered (100.0%)

5.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25646753383.1 11 May 2026 02:14AM UTC 17
100.0
GitHub Action Run
2 25646753383.2 11 May 2026 02:14AM UTC 17
100.0
GitHub Action Run
3 25646753383.3 11 May 2026 02:14AM UTC 17
100.0
GitHub Action Run
4 25646753383.4 11 May 2026 02:15AM UTC 17
100.0
GitHub Action Run
5 25646753383.5 11 May 2026 02:15AM UTC 17
100.0
GitHub Action Run
Source Files on build 25646753383
  • 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 Repo
  • Github Actions Build #25646753383
  • 02b0e83d on github
  • Prev Build on master (#25641918150)
  • Next Build on master (#25649113488)
  • 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