Skip to content

Commit

Permalink
flake 8
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip committed Nov 8, 2024
1 parent aa0e7d6 commit 8707740
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion location/gql_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.core.exceptions import ValidationError, PermissionDenied
from django.utils.translation import gettext as _
from graphene import InputObjectType
from django.core.cache import cache

import copy

Expand Down
1 change: 0 additions & 1 deletion location/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@ def location_deleted(sender, instance, **kwargs):
free_cache_for_user()



class OfficerVillage(core_models.VersionedModel):
id = models.AutoField(db_column="OfficerVillageId", primary_key=True)
officer = models.ForeignKey(
Expand Down
6 changes: 0 additions & 6 deletions location/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
from django.core.cache import caches

from location.models import LocationManager, UserDistrict
from core.services import (
create_or_update_interactive_user,
create_or_update_core_user,
create_or_update_user_districts,
)
from core.utils import filter_validity
from core.models.user import Role

Expand Down Expand Up @@ -126,7 +121,6 @@ def test_allowed_location(self):
districts = UserDistrict.get_user_districts(self.test_user)
self.assertIsNotNone(districts)


def test_cache_invalidation(self):
LocationManager().is_allowed(self.test_user, [])
cached = caches["location"].get(f"user_locations_{self.test_user._u.id}")
Expand Down

0 comments on commit 8707740

Please sign in to comment.