Repository navigation
chore(v1): drop the duplicate status read-back close test - #1085
Merged
allenporter merged 1 commit intoNov 24, 2026
Merged
allenporter merged 1 commit into
allenporter merged 1 commit into
Conversation
Follow-up to Python-roborock#1067, where the maintainer noted that test_init.py is redundant because test_status.py already covers closing the status trait. Closing through PropertiesApi.close() is now covered in test_status.py as well.
allenporter
approved these changes
Nov 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #1067, which was merged with one cleanup left for later:
tests/devices/traits/v1/test_init.pyduplicates coverage thattest_status.pyalready has.What and why
test_init.pyheld one test,test_close_cancels_status_read_back. Closing the status trait with a pending or in-flight read-back is already covered intests/devices/traits/v1/test_status.pybytest_close_cancels_pending_read_backandtest_close_cancels_in_flight_read_back.Those tests call
StatusTrait.close()directly, so nothing checked thatPropertiesApi.close()still callsstatus.close(). This PR addstest_properties_api_close_cancels_pending_read_backtotest_status.pyfor that path and deletestest_init.py.The new test fails without the call: with
self.status.close()removed fromPropertiesApi.close(), a push-scheduled read-back still runs and the test fails. With the call in place it passes.Conflicts with open PRs
I checked for a duplicate (no open PR does the same cleanup) and test-merged this branch against every open PR that touches
tests/devices/traits/v1/test_status.pyortest_init.py(git merge-tree, on top of currentmain):test_init.pyor adds the new test.tests/devices/traits/v1/test_status.py(#959 also inroborock/devices/traits/v1/status.py). Both already conflict with currentmainwithout this PR, so the conflict is not caused by it.Testing
pytest: full suite passes (2815 passed), run with two hash seeds.pre-commit run --all-files(ruff, mypy, codespell) passes.