From 5dc6233edf087a116e316009d374b90a7da8b2ae Mon Sep 17 00:00:00 2001 From: Sampo Tawast Date: Fri, 22 Sep 2023 15:02:01 +0300 Subject: [PATCH] fix: remove employee phone_number test --- .../benefit/applications/tests/test_applications_api.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/benefit/applications/tests/test_applications_api.py b/backend/benefit/applications/tests/test_applications_api.py index 14fa7b9390..c99471d5fe 100755 --- a/backend/benefit/applications/tests/test_applications_api.py +++ b/backend/benefit/applications/tests/test_applications_api.py @@ -531,7 +531,6 @@ def test_application_post_invalid_employee_data(api_client, application): data["employee"]["monthly_pay"] = "30000000.00" # value too high data["employee"]["social_security_number"] = "260778-323X" # invalid checksum data["employee"]["employee_language"] = None # non-null required - data["employee"]["phone_number"] = "+359505658789" # Invalid country code data["employee"]["working_hours"] = 16 # Must be > 18 hour per weeek data["employee"]["vacation_money"] = -1 # Must be >= 0 data["employee"]["other_expenses"] = -1 # Must be >= 0 @@ -542,7 +541,6 @@ def test_application_post_invalid_employee_data(api_client, application): assert response.data.keys() == {"employee"} assert response.data["employee"].keys() == { "monthly_pay", - "phone_number", "social_security_number", "employee_language", "working_hours", @@ -619,7 +617,6 @@ def test_application_put_edit_employee(api_client, application): """ new_ssn = "260778-323Y" data = ApplicantApplicationSerializer(application).data - data["employee"]["phone_number"] = "0505658789" data["employee"]["social_security_number"] = new_ssn old_employee_pk = application.employee.pk response = api_client.put( @@ -627,11 +624,7 @@ def test_application_put_edit_employee(api_client, application): data, ) assert response.status_code == 200 - assert ( - response.data["employee"]["phone_number"] == "0505658789" - ) # normalized format application.refresh_from_db() - assert application.employee.phone_number == "+358505658789" assert application.employee.social_security_number == new_ssn assert old_employee_pk == application.employee.pk