Opened 13 years ago

Last modified 12 years ago

#18057 closed Cleanup/optimization

Docs should say that caches are not cleared after each test — at Initial Version

Reported by: Thomas Güttler Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: hv@…, albrecht.andi@…, timograham@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Caches are not cleared after each test, and running "manage.py test fooapp" can insert wrong data into the cache of a live system.

The current behavior should be documented here:

https://docs.djangoproject.com/en/dev/topics/testing/

I think it is imporant to state this, since tests use a temporary database and flush the database for each test.

Related Ticket: #16401 (Cache should be reset after each test without flushing)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top