Skip to content

Commit a0c505a

Browse files
committed
ignore coverage of the else branch since the coverage report runs with django 5.2 and latest drf meaning the else branch never runs
1 parent fdd85f6 commit a0c505a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pip install django~=5.2 pytest pytest-django pytest-cov drf-spectacular django-filter
2222
pytest --cov --cov-report=xml
2323
- name: Upload coverage to Codecov
24-
uses: codecov/codecov-action@v4
24+
uses: codecov/codecov-action@v6
2525
with:
2626
token: ${{ secrets.CODECOV_TOKEN }}
2727
fail_ci_if_error: true

drf_standardized_errors/openapi_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def add_unique_together_error_codes(
242242
# to `drf.UniqueTogetherValidator`. Before that, the error code was
243243
# hardcoded as `"unique"`
244244
sfield.error_codes.update(v.code for v in unique_together_validators)
245-
else:
245+
else: # pragma: no cover
246246
sfield.error_codes.add("unique")
247247
# fields involved in a unique together constraint have an implied
248248
# "required" state, so we're adding the "required" error code to them

0 commit comments

Comments
 (0)