-
Notifications
You must be signed in to change notification settings - Fork 33
test: migrate coordinator/entity tests to pytest-homeassistant-custom-component harness #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rhammen
wants to merge
30
commits into
custom-components:master
Choose a base branch
from
rhammen:test/ha-test-harness-migration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
44fcd53
docs: add design spec for HA test-harness migration
rhammen 1143bf1
test: adopt pytest-homeassistant-custom-component harness with Window…
rhammen 8cd0c0c
test: prevent zaptec_constants fixture from clobbering HA event-loop …
rhammen 6eb68ac
test: add real-harness setup fixtures (mock Zaptec client + MockConfi…
rhammen bcdb186
test: behavior coverage for ZaptecUpdateCoordinator via real harness
rhammen cedc13b
test: behavior coverage for ZaptecBaseEntity; xfail documents #410
rhammen b74943c
test: remove temporary harness smoke test, cover coordinator/entity gaps
rhammen 911d59b
test: document _backed_get MISSING-default/no-normalization divergence
rhammen 0ecebab
test: assert correct entity-availability behavior (#410 is not a bug)
rhammen 650e888
test: unpin pytest-hacc so CI 3.13 matrix leg can install
rhammen ffa2f78
test: pin pytest-hacc per-Python via markers to match reverted HA on …
rhammen 5475a3b
test: decouple test-job install from requirements.txt (pytest-hacc ow…
rhammen 221406a
test: make requirements.txt + pytest-hacc coexist (relax pydantic pin)
rhammen 06c3eeb
docs: rework HA-harness migration to Linux-native + Option C (#257)
rhammen 95b0800
test: drop committed Windows shim; rely on Linux pytest-hacc autoload
rhammen 70ed43f
ci: run harness + API-client tests as two scoped pytest invocations
rhammen a77a9b7
test: scripts/test runs harness + API-client invocations, combined co…
rhammen 3ba66e8
docs: explain two-invocation test split (harness vs API-client, #257)
rhammen 6550f73
test: normalize keys in _backed_get via to_under, matching ZaptecBase…
rhammen b8f212a
test: pin charging-interval test to named constants, keep the relatio…
rhammen 057af4b
test: explain non-obvious white-box test rationale, cover 4th log-for…
rhammen 0b79410
test: explain the mock-name coupling behind test_init.py's entity filter
rhammen 7611e67
test: explain three non-obvious setup choices in trigger_poll/constru…
rhammen 6858e82
test: explain four non-obvious fixture/mock choices in conftest.py
rhammen 4361b0a
docs: remove planning docs (archived to docs/ai-planning-archive)
rhammen 5d9cdaf
merge: pull in upstream #413 (redaction) and #408 (AI policy)
rhammen 9464908
test: drop in-code issue references flagged in PR #414 review
rhammen e3a7c68
test: split zaptec_constants into tests/zaptec/conftest.py
rhammen 01d997d
test: trim redundant comment block in requirements_test.txt
rhammen 55a5ed1
test: trim wordy docstrings/comments flagged in PR #414 review
rhammen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| pytest | ||
| pytest-asyncio | ||
| pytest-mock | ||
| pytest-cov | ||
| pytest-cov | ||
| pytest-homeassistant-custom-component==0.13.324; python_version >= "3.14" | ||
| pytest-homeassistant-custom-component==0.13.316; python_version < "3.14" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
rhammen marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.