Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed doc_test_fixtures.json. #1486

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

bmispelon
Copy link
Member

@bmispelon bmispelon commented Feb 24, 2024

I noticed this by running only the tests for docs: python manage.py test docs.

This PR fixes the fixture but also changes the dev.py settings to use a DummyCache which would catch these kinds of errors in the future (at the cost of slightly worse performance for local development, which I think is acceptable).
Because the cache is not being used anymore during the tests, I've had to adjust two tests that were counting queries.

The broken fixture was hidden by the cache not being reset between
tests. This meant that some tests would fail when run in isolation,
but pass when run as part of the whole suite (because previous tests
would warm up the cache).
@felixxm felixxm changed the title Fixed broken test fixture Fixed doc_test_fixtures.json. Feb 28, 2024
@felixxm felixxm merged commit fd9c5d1 into django:main Feb 28, 2024
2 checks passed
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.

None yet

2 participants