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

bramstroker / homeassistant-powercalc / 23094932974
100%

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2026 07:40PM UTC
Jobs 1
Files 59
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

14 Mar 2026 07:38PM UTC coverage: 100.0%. Remained the same
23094932974

push

github

web-flow
Add tests for Measure.ask_questions method (#4051)

* Add CodyAI generated test cases around ask questions

* Fix ask_questions test issues: add missing import, match code style, fix str_to_bool coverage

- Add missing `import inquirer`
- Use double quotes consistently to match existing code style
- Add docstrings and noqa annotations matching existing test conventions
- Fix predefined Confirm answer to pass string "true" instead of bool True,
  properly exercising the str_to_bool code path
- Rename misleading test_ask_questions_with_invalid_question_type to
  test_ask_questions_with_list_type
- Add missing blank line between functions per PEP 8
- Add trailing commas in list literals

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add test for QUESTION_MODE to LutMode set conversion in ask_questions

Covers the branch where a non-set mode answer is wrapped in a LutMode set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix test-measure CI: add --extra dev to install pytest

The pytest dependency is in the `dev` optional group, so `uv run` needs
`--extra dev` to make it available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Refactor ask_questions tests: use config_values and realistic test data

Use mock_config_factory's config_values parameter instead of overriding
get_conf_value with lambdas, and replace generic Alice/Bob placeholders
with domain-relevant values like model_id and color_mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Use QUESTION_* constants instead of string literals in tests

Define QUESTION_SELECTED_MEASURE_TYPE and QUESTION_COLOR_MODE constants
and replace all string literal question IDs with their corresponding
constants for better IDE navigation and refactoring support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

6456 of 6456 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23094932974.1 14 Mar 2026 07:40PM UTC 59
100.0
GitHub Action Run
Source Files on build 23094932974
  • Tree
  • List 59
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23094932974
  • 12abc919 on github
  • Prev Build on master (#22922720155)
  • 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