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

FlexMeasures / flexmeasures / 29933729188
83%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 03:42PM UTC
Jobs 1
Files 171
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

22 Jul 2026 03:30PM UTC coverage: 82.776% (+0.002%) from 82.774%
29933729188

push

github

web-flow
Raise clear error when flex-model sensor is missing (#2343)

* Raise clear error when flex-model sensor is missing

collect_flex_config looked up flex-model sensor IDs and immediately
dereferenced sensor.asset_id, producing AttributeError on missing
sensors. Raise ValueError with the same message style as SensorIdField
validation used for flex-context.

Fixes #2250

Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>

* Refactor collect_flex_config to satisfy flake8 C901

Extract _get_sensor_or_raise so missing-sensor checks do not push
Scheduler.collect_flex_config over the complexity limit.

Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>

* test: hoist imports in missing-sensor regression test to module level

Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>

---------

Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>

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

5 existing lines in 1 file now uncovered.

15807 of 19096 relevant lines covered (82.78%)

0.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
91.3
-0.03% flexmeasures/data/services/scheduling.py
Jobs
ID Job ID Ran Files Coverage
1 29933729188.1 22 Jul 2026 03:42PM UTC 171
82.78
GitHub Action Run
Source Files on build 29933729188
  • Tree
  • List 171
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29933729188
  • 5efa733d on github
  • Prev Build on main (#29931127562)
  • Next Build on main (#29933625196)
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