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

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 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

Copy link
Copy Markdown
Contributor

Codecov Results 📊

102663 passed | ⏭️ 6587 skipped | Total: 109250 | Pass Rate: 93.97% | Execution Time: 355m 46s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -1411
Passed Tests 📉 -1321
Failed Tests
Skipped Tests 📉 -90

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2477 uncovered lines.
✅ Project coverage is 90.15%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.15%    90.15%        —%
==========================================
  Files          193       193         —
  Lines        25147     25147         —
  Branches      9136      9136         —
==========================================
+ Hits         22669     22670        +1
- Misses        2478      2477        -1
- Partials      1431      1430        -1

Generated by Codecov Action

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