Repository navigation
test: the sync test mirror no longer drops the test after a skipped class - #150
Merged
Merged
Conversation
…lass A skip marker above a class sent _without_skipped into its decorator state, so it skipped the class and then the first test after it as well: regenerating lost test__partition_data__drains_default_into_monthly_partitions_in_batches from the sync suite. test_cli.py is left out of the mirror (the CLI runs the aio service on its own loop), and a section whose tests are all skipped loses its heading. Regenerating now brings in only the one assertion the sync suite had missed.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…c-integration-mirror
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.
Summary
Regenerating
tests/integration/sync/from the aio suite dropped a real test. A# sync-mirror: skipmarker above a class (_Writerintest_migration.py) sent_without_skippedinto its decorator state, so it skipped the class and then the first test after it:test__partition_data__drains_default_into_monthly_partitions_in_batches. The committed sync file only still had it because it had been kept by hand, and CI does not compare the mirror.classnow counts as a definition after a skip marker.test_cli.pyis left out of the mirror on purpose (AIO_ONLY): the CLI runs the aio service on its own loop, so a sync twin would run the same code again, and the old generator's twin did not even importasyncio.tests/unit/test_sync_tests_mirror.pypins all three. Each fails with its fix reverted.Regenerating now changes one line of the sync suite, the
ACCESS EXCLUSIVE on the parentassertion it had missed intest_lifecycle_policies.py, plus the empty headings intest_maintainer.pyandtest_safe_drop.py. CONTRIBUTING.md and.agents/project.mdmention thetest_cli.pyexception.Type of change
Checklist
make checkpasses locally (ruff+mypy)CHANGELOG.md: not user-visibleTests run:
pytest -m unit(2880 passed) and the regenerated sync integration modulestest_lifecycle_policies,test_maintainer,test_safe_drop,test_migrationon PostgreSQL 17 (79 passed).Related issues
Found while reviewing #149.
AI Review
Commit
47d0a5b, Claude Opus 5.5, fixes after it not reviewed again