Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Nov 13, 2023
1 parent d327c49 commit 8899741
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ def session_authenticated_client(settings, test_user, client) -> APIClient:
openid_user = OpenidUser.objects.create(
sub="1",
user=test_user,
)
OpenidSession.objects.create(
user=openid_user,
sid="example_session",
scope=settings.OPENID_SCOPE,
_id_token=json.dumps(
{
"sid": "example_session",
Expand All @@ -53,9 +58,6 @@ def session_authenticated_client(settings, test_user, client) -> APIClient:
}
),
)
OpenidSession.objects.create(
user=openid_user, sid="example_session", scope=settings.OPENID_SCOPE
)
return client


Expand Down

0 comments on commit 8899741

Please sign in to comment.