From 968c1582dfcaf0f5492d7e783bb4d3b173cb4acc Mon Sep 17 00:00:00 2001 From: delcroip Date: Fri, 8 Nov 2024 11:38:09 +0100 Subject: [PATCH] flake8 --- location/tests/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/location/tests/test.py b/location/tests/test.py index e363199..040bf0b 100644 --- a/location/tests/test.py +++ b/location/tests/test.py @@ -124,8 +124,8 @@ def test_allowed_location(self): cached = caches["location"].get(f"user_locations_{self.test_user._u.id}") self.assertIsNotNone(cached) districts = UserDistrict.get_user_districts(self.test_user) - self.assertIsNotNone(cached) - + self.assertIsNotNone(districts) + def test_cache_invalidation(self): LocationManager().is_allowed(self.test_user, [])