Opened 5 years ago

Closed 5 years ago

#20092 closed Bug (duplicate)

Cache not isolated in tests

Reported by: Jonas Obrist Owned by: nobody
Component: Testing framework Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Unlike the database, cache is not isolated in tests. I would argue that it's expected behavior that the cache is clean in each test method.

The cache tests of Django [1] manually clear the cache in tearDown and comparing the DB cache tests [2] to the Locmem cache tests [3] shows possible difficulties on properly isolating the cache in tests.


Change History (1)

comment:1 Changed 5 years ago by Baptiste Mispelon

Resolution: duplicate
Status: newclosed

This seems like a duplicate of #11505.

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