test(django): Drop span_streaming parametrize where the arm is inert - #7157
Open
ericapisani wants to merge 2 commits into
Open
test(django): Drop span_streaming parametrize where the arm is inert#7157ericapisani wants to merge 2 commits into
ericapisani wants to merge 2 commits into
Conversation
These tests are event-only: they capture events, never spans, and the span_streaming argument was only ever fed to trace_lifecycle. Both arms therefore exercised identical code paths and asserted identical payloads, so the parametrize doubled the case count without adding coverage. Affected: 18 event-only tests in test_basic.py, the 3 cookie-scrubbing tests in test_data_scrubbing.py, test_set_db_data_custom_backend, and test_cache_spans_get_span_name (a pure unit test of _get_span_description that never referenced the argument). Tests that inspect spans or transactions keep their parametrize.
Contributor
Codecov Results 📊✅ 103737 passed | ⏭️ 6677 skipped | Total: 110414 | Pass Rate: 93.95% | Execution Time: 365m 30s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2486 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 90.14% 90.13% -0.01%
==========================================
Files 193 193 —
Lines 25183 25183 —
Branches 9176 9176 —
==========================================
+ Hits 22700 22697 -3
- Misses 2483 2486 +3
- Partials 1429 1432 +3Generated by Codecov Action |
Update all Django tests to use the `capture_items("event")` fixture API
instead of the `capture_events()` fixture. The new API returns
items with a `.payload` attribute rather than event objects directly.
ericapisani
marked this pull request as ready for review
August 11, 2026 14:37
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.
Description
These tests are event-only: they capture events, never spans, and the
span_streamingargument was only ever fed totrace_lifecycle. Both arms exercised identical code paths and asserted identical payloads, so the parametrize doubled the case count without adding coverage.Tests that inspect spans or transactions keep their parametrize.
391 -> 356 cases.
Refs PY-2641
Refs #6975