test: add tests for the exclusive() operator#788
Draft
github-actions[bot] wants to merge 2 commits into
Draft
Conversation
10 TestScheduler-based tests covering: - empty outer observable - never observable - single inner completes normally - concurrent inner dropped while one is active - sequential inners (second accepted after first completes) - multiple concurrent inners all dropped - outer error propagation - inner error propagation - deferred completion (outer completes before inner finishes) - early disposal Co-authored-by: Copilot <[email protected]>
4 tasks
…5-02-2b47081797817f4d
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.
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Adds 10
TestScheduler-based tests for theexclusive()operator intests/test_observable/test_exclusive.py.exclusive()subscribes to each inner observable emitted by the outer source one at a time, silently dropping any inner observable that arrives while another is still active. This operator had no tests at all.Tests added
test_exclusive_nevertest_exclusive_empty_outertest_exclusive_single_inner_completestest_exclusive_drops_concurrent_innertest_exclusive_sequential_innerstest_exclusive_multiple_concurrent_dropstest_exclusive_outer_errortest_exclusive_inner_errortest_exclusive_completes_when_outer_and_inner_donetest_exclusive_disposedChecklist
uv run pytest tests/test_observable/test_exclusive.py)uv run pytest— 1491 passed)ruff checkandruff format --checkpassuv run pytestNote
🔒 Integrity filter blocked 76 items
The following items were blocked because they don't meet the GitHub integrity level.
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".from_iterablewith a generator the generator might not be closed #546list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter: