Skip to content

Commit

Permalink
fix changed attribute in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Oct 23, 2023
1 parent 6cbd1c3 commit 889d51c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/plugins/federation/test_federation_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_create_invitecode(django_app, superuser):
@patch("ephios.plugins.federation.forms.requests")
def test_redeem_invitecode_frontend(mock_requests, django_app, superuser, invite_code):
mock_requests.post.return_value.json.return_value = {
"name": "Test",
"host_name": "Test",
"host_url": "http://localhost:8000",
"access_token": "test",
}
Expand Down Expand Up @@ -49,5 +49,6 @@ def test_redeem_invitecode_api(django_app, superuser, invite_code):
},
user=superuser,
)
assert response.status_code == 201
assert response.json["url"] == invite_code.url
assert FederatedGuest.objects.count() == 1

0 comments on commit 889d51c

Please sign in to comment.