Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Sep 6, 2024
1 parent 3777a6d commit c8d9459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentication/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def test_login_email_hijacked(client, user, admin_user):
def test_register_email_hijacked(client, user, admin_user):
"""Test that a 403 response is returned for email register view if user is hijacked"""
client.force_login(admin_user)
client.post(f"/hijack/{user.id}/")
client.post("/hijack/acquire/", {"user_pk": user.id})
response = client.post(
reverse("psa-register-email"),
{"flow": SocialAuthState.FLOW_LOGIN, "email": "[email protected]"},
Expand Down

0 comments on commit c8d9459

Please sign in to comment.