Skip to content

Commit

Permalink
test(users): remove redundant fixture calls
Browse files Browse the repository at this point in the history
Refs: PS-160, PS-159
  • Loading branch information
danipran committed Nov 22, 2024
1 parent 7afd5fe commit f55e12d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions users/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ def superuser():


@pytest.fixture
def user_api_client(api_client, user):
def user_api_client(user):
api_client = APIClient()
api_client.force_authenticate(user=user)
api_client.user = user
return api_client


@pytest.fixture
def contractor_api_client(api_client, contractor):
def contractor_api_client(contractor):
api_client = APIClient()
api_client.force_authenticate(user=contractor)
api_client.user = contractor
return api_client


@pytest.fixture
def official_api_client(api_client, official):
def official_api_client(official):
api_client = APIClient()
api_client.force_authenticate(user=official)
api_client.user = official
Expand Down

0 comments on commit f55e12d

Please sign in to comment.