Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled

This commit is contained in:
Sarah Boyce 2025-09-18 16:27:11 +02:00
parent 5ddb01c760
commit 7528979153

View file

@ -13,6 +13,7 @@ from django.utils.deprecation import (
class DjangoFilePrefixesTests(SimpleTestCase):
def setUp(self):
django_file_prefixes.cache_clear()
self.addCleanup(django_file_prefixes.cache_clear)
def test_no_file(self):
orig_file = django.__file__