Skip to content

Commit

Permalink
style: remove unused imports and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Sep 30, 2024
1 parent 3315a4d commit 7bb8976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions uvdat/core/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def api_client() -> APIClient:

@pytest.fixture
def permissions_client(user_info, test_project) -> APIClient:
perm = user_info.pop('perm', None)
test_id = user_info.pop('id', None)
user_info.pop('perm', None)
user_info.pop('id', None)
user = User.objects.create(**user_info)
client = APIClient()
client.force_authenticate(user=user)
Expand Down
4 changes: 0 additions & 4 deletions uvdat/core/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django.contrib.gis.geos import LineString, MultiPolygon, Point, Polygon
from guardian.shortcuts import get_perms
import pytest
from rest_framework.test import APIClient

from uvdat.core.models import (
Chart,
Expand All @@ -10,9 +9,7 @@
Network,
NetworkEdge,
NetworkNode,
Project,
RasterMapLayer,
SimulationResult,
SourceRegion,
VectorMapLayer,
)
Expand Down Expand Up @@ -44,7 +41,6 @@ def fetch_endpoint(server, client, viewset_name, obj_id, **kwargs):

def create_endpoint(server, client, viewset_name, post_data, **kwargs):
if post_data is not None:
write_allowed = kwargs.get('write_allowed', False)
api_root = f'{server.url}/api/v1'
response = client.post(f'{api_root}/{viewset_name}/', post_data, format='json')
assert response.status_code == 201
Expand Down

0 comments on commit 7bb8976

Please sign in to comment.