Skip to content

chore(django-spanner): restore fail_under=100 in .coveragerc#17772

Open
ohmayr wants to merge 8 commits into
mainfrom
fix-django-spanner-coverage
Open

chore(django-spanner): restore fail_under=100 in .coveragerc#17772
ohmayr wants to merge 8 commits into
mainfrom
fix-django-spanner-coverage

Conversation

@ohmayr

@ohmayr ohmayr commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

fix coverage for django-spanner

Towards #17459 🦕

@ohmayr
ohmayr requested a review from a team as a code owner July 20, 2026 09:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the coverage configuration in .coveragerc by increasing the fail_under threshold to 100% and omitting test directories. It also configures coverage for the mockserver session in noxfile.py and adjusts coverage failure thresholds. The reviewer pointed out that specifying --cov=tests.mockserver_tests in noxfile.py is redundant since test directories are already omitted in .coveragerc, and suggested removing this argument.

Comment on lines +158 to +159
"--cov=django_spanner",
"--cov=tests.mockserver_tests",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since tests/* and */tests/* are explicitly omitted in .coveragerc, specifying --cov=tests.mockserver_tests here is redundant and will be ignored by coverage. It is cleaner to remove this argument.

Suggested change
"--cov=django_spanner",
"--cov=tests.mockserver_tests",
"--cov=django_spanner",

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