Add an extra fixture for testing in the Integration by bouwew · Pull Request #878 · plugwise/python-plugwise · GitHub
Skip to content

Add an extra fixture for testing in the Integration - #878

Merged
bouwew merged 6 commits into
mainfrom
extra_fixture
May 25, 2026
Merged

bouwew merged 6 commits into
mainfrom
extra_fixture

Conversation

@bouwew

@bouwew bouwew commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Tests
    • Added a new test fixture for Plugwise heating system configuration with off-schedule and idle states.
    • Enhanced fixture generation script to support additional test scenario variants.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

@coderabbitai
coderabbitai Bot requested a review from CoMPaTech May 25, 2026 10:36
@codecov

codecov Bot commented May 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (45ab4e3) to head (afc7747).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #878   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         3457      3457           
=========================================
  Hits          3457      3457           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/manual_fixtures.py`:
- Around line 202-225: The patch mistakenly mutates m_adam_heating instead of
the intended m_adam_heating_off_schedule, causing alias-dependent output; fix by
creating m_adam_heating_off_schedule as a deep copy (use copy.deepcopy) of
m_adam_heating or by applying all subsequent overrides to
m_adam_heating_off_schedule (e.g., updates for keys
"f2bf9048bef64cc5b6d5110154e33c81", "f871b8c4d63549319221e294e4f88074",
"da224107914542988a88561b4452b0f6", "056ee145a816487eaa69243c3280f8bf") so
json_writer("m_adam_heating_off_schedule", m_adam_heating_off_schedule) writes
an independently modified object.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1631afcc-bd4a-4927-a98b-d7666df8dd5c

📥 Commits

Reviewing files that changed from the base of the PR and between 45ab4e3 and 1976c59.

📒 Files selected for processing (2)
  • fixtures/m_adam_heating_off_schedule/data.json
  • scripts/manual_fixtures.py

Comment thread scripts/manual_fixtures.py
@sonarqubecloud

Copy link
Copy Markdown

@bouwew
bouwew marked this pull request as ready for review May 25, 2026 11:24
@bouwew
bouwew requested a review from a team as a code owner May 25, 2026 11:24
@bouwew
bouwew merged commit 5f6d559 into main May 25, 2026
18 checks passed
@bouwew
bouwew deleted the extra_fixture branch May 25, 2026 11:26
@coderabbitai coderabbitai Bot mentioned this pull request Jul 31, 2026

This branch was previously deployed

2 inactive deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant