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

openwisp / openwisp-firmware-upgrader / 30048404190

23 Jul 2026 10:01PM UTC coverage: 94.057% (+0.01%) from 94.047%
30048404190

push

github

web-flow
[fix] Guarded cancel upgrade API URL behind FIRMWARE_UPGRADER_API #444

When the FIRMWARE_UPGRADER_API setting is disabled, the `reverse`
call for `upgrader:api_upgradeoperation_cancel` and the corresponding
template URL tag would previously cause a `NoReverseMatch` error.

This change guards these calls behind the `FIRMWARE_UPGRADER_API`
setting, causing them to gracefully return an empty string when the API is
disabled, preventing crashes.

Closes #444

2263 of 2406 relevant lines covered (94.06%)

11.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.36
/admin.py


Build SHA Not Found

The commit SHA "1533140295e7b7fcccb12f697e74bdd3b426436e" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

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