Skip to content

Commit 67b6b54

Browse files
hc-sousacursoragent
andcommitted
test(transit): clear cache in directions setUp for deterministic runs
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8438746 commit 67b6b54

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/transit/tests/test_directions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from unittest.mock import patch
66

7+
from django.core.cache import cache
78
from django.test import TestCase, override_settings
89

910
from tenancy.services import get_or_create_default_island
@@ -13,6 +14,7 @@
1314

1415
class DirectionsServiceTests(TestCase):
1516
def setUp(self):
17+
cache.clear()
1618
self.island = get_or_create_default_island()
1719
self.island.feature_flags = {**(self.island.feature_flags or {}), 'maps': True}
1820
self.island.save(update_fields=['feature_flags'])

0 commit comments

Comments
 (0)