#20092: Cache not isolated in tests -----------------------------------+-------------------- Reporter: ojii | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------- 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. [1] https://github.com/django/django/blob/master/tests/cache/tests.py [2] https://github.com/django/django/blob/master/tests/cache/tests.py#L814 [3] https://github.com/django/django/blob/master/tests/cache/tests.py#L917 -- Ticket URL: <https://code.djangoproject.com/ticket/20092> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.