django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.86k stars 937 forks source link

Fixed doc_test_fixtures.json. #1486

Closed bmispelon closed 4 months ago

bmispelon commented 4 months ago

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.