Skip to content

Commit

Permalink
fix lint import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Aug 27, 2024
1 parent 2c9e762 commit c504c67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion onadata/apps/api/viewsets/entity_list_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
ListModelMixin,
)


from onadata.apps.api.permissions import DjangoObjectPermissionsIgnoreModelPerm
from onadata.apps.api.tools import get_baseviewset_class
from onadata.apps.logger.models import Entity, EntityList
Expand Down
6 changes: 3 additions & 3 deletions onadata/apps/logger/tests/models/test_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def test_creation(self, mock_now):
"circumference_cm": 300,
"label": "300cm purpleheart",
}
uuid = "dbee4c32-a922-451c-9df7-42f40bf78f48"
entity_uuid = "dbee4c32-a922-451c-9df7-42f40bf78f48"
entity = Entity.objects.create(
entity_list=self.entity_list,
json=entity_json,
uuid=uuid,
uuid=entity_uuid,
)
self.assertEqual(entity.entity_list, self.entity_list)
self.assertEqual(entity.json, entity_json)
self.assertEqual(entity.uuid, uuid)
self.assertEqual(entity.uuid, entity_uuid)
self.assertEqual(f"{entity}", f"{entity.pk}|{self.entity_list}")
self.assertEqual(entity.date_created, self.mocked_now)

Expand Down

0 comments on commit c504c67

Please sign in to comment.