Opened 3 years ago

Closed 3 years ago

#20092 closed Bug (duplicate)

Cache not isolated in tests

Reported by: ojii 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 3 years ago by bmispelon

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This seems like a duplicate of #11505.

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