Skip to content

test(django): Remove two tests made redundant by existing coverage - #7159

Draft
ericapisani wants to merge 2 commits into
ep/django-tests-asgi-paramsfrom
ep/django-tests-redundant
Draft

test(django): Remove two tests made redundant by existing coverage#7159
ericapisani wants to merge 2 commits into
ep/django-tests-asgi-paramsfrom
ep/django-tests-redundant

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 10, 2026

Copy link
Copy Markdown
Member

Description

  • test_query_source_enabled is a strict subset of test_query_source — same view, same threshold, a subset of its assertions. Its one distinct contribution was pinning behaviour when enable_db_query_source is left at its default, so test_query_source now relies on the default rather than setting it explicitly.
  • The json/str row in test_rest_framework_basic takes the same body-extraction branch as the json/int row and asserts the same shape.

320 -> 312 cases.

Refs PY-2641
Refs #6975

@ericapisani ericapisani changed the title ep/django tests redundant test(django): Remove two tests made redundant by existing coverage Aug 10, 2026
@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

PY-2641

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

111400 passed | ⏭️ 6669 skipped | Total: 118069 | Pass Rate: 94.35% | Execution Time: 400m 58s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -1166
Passed Tests 📉 -1079
Failed Tests 📉 -1
Skipped Tests 📉 -86

➖ Removed Tests (1)

View removed tests
  • test_span_streaming_quart_auth_user_id[42-True]
    • File: tests.integrations.quart.test_quart

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2487 uncovered lines.
❌ Project coverage is 90.2%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    90.21%    90.20%    -0.01%
==========================================
  Files          193       193         —
  Lines        25370     25370         —
  Branches      9310      9310         —
==========================================
+ Hits         22885     22883        -2
- Misses        2485      2487        +2
- Partials      1431      1435        +4

Generated by Codecov Action

The json/str scalar row takes the same request-body extraction branch as
the json/int scalar row already in the table and asserts the same shape,
so it only re-runs coverage the int row provides.
It is a strict subset of test_query_source: same view, same
db_query_source_threshold_ms, and a subset of its assertions. Its only
distinct contribution was pinning that query source attributes are attached
when enable_db_query_source is left at its default, so test_query_source now
relies on the default rather than setting it explicitly, keeping that pin.
@ericapisani
ericapisani force-pushed the ep/django-tests-redundant branch from 4fa6aae to 78002b7 Compare August 13, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant