Skip to content
Snippets Groups Projects
Commit 148cc245 authored by Tore.Brede's avatar Tore.Brede
Browse files

Fixing broken test

parent c988a700
No related branches found
No related tags found
1 merge request!121Adding Feide ID to guest registation page, adding success page in wizard
Pipeline #98026 failed
......@@ -44,7 +44,7 @@ def test_get_invited_info_no_session(client, invitation_link):
@pytest.mark.django_db
def test_get_invited_info_session_okay(
client, invitation_link, person_foo_data, sponsor_guy_data, role_type_foo, unit_foo
client, invitation_link, person_foo_data, sponsor_guy_data, role_type_foo, unit_foo
):
# get a session
client.get(
......@@ -60,6 +60,7 @@ def test_get_invited_info_session_okay(
mobile_phone=None,
fnr=None,
passport=None,
feide_id=None,
)
assert data.get("sponsor") == dict(
first_name=sponsor_guy_data["first_name"],
......@@ -78,7 +79,7 @@ def test_get_invited_info_session_okay(
@pytest.mark.django_db
def test_get_invited_info_expired_link(
client, invitation_link, invitation_expired_date
client, invitation_link, invitation_expired_date
):
# Get a session while link is valid
client.get(
......@@ -96,7 +97,7 @@ def test_get_invited_info_expired_link(
@pytest.mark.django_db
def test_invited_guest_can_post_information(
client: APIClient, invitation_link, person_foo_data
client: APIClient, invitation_link, person_foo_data
):
# get a session
client.get(
......@@ -125,7 +126,7 @@ def test_invited_guest_can_post_information(
@pytest.mark.django_db
def test_post_invited_info_expired_session(
client, invitation_link, invitation_expired_date
client, invitation_link, invitation_expired_date
):
# get a session
client.get(
......@@ -158,7 +159,7 @@ def test_post_invited_info_deleted_inv_link(client, invitation_link):
@pytest.mark.django_db
def test_post_invited_info_invalid_national_id_number(
client, invitation_link, person_foo_data, person
client, invitation_link, person_foo_data, person
):
data = {
"person": {
......@@ -185,7 +186,7 @@ def test_post_invited_info_invalid_national_id_number(
@pytest.mark.django_db
def test_post_invited_info_valid_national_id_number(
client, invitation_link, person_foo_data, person
client, invitation_link, person_foo_data, person
):
fnr = "11120618212"
data = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment