Skip to content

Add tests for dashboard_utils.status_badge_html() #28

Description

@AshayK003

Untested function

status_badge_html() (diffiq/dashboard_utils.py:13)

Generates an HTML badge for filing status display. Needs tests for:

  • "completed" -> green badge HTML
  • "pending" -> yellow badge HTML
  • "error" -> red badge HTML
  • Unknown status -> default badge
  • HTML escaping of status text

How to run

python -m pytest tests/test_dashboard_utils.py -v

Difficulty

Easy. Pure string formatting, no dependencies.

Metadata

Metadata

Labels

good first issueGood for newcomerstestsTest coverage improvements

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions