Skip to content

Commit

Permalink
Clear references to public_service_attestation_delegation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tut-tuuut committed Mar 28, 2022
1 parent 972edfd commit cabd264
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_form_normal_organisation_with_fs_label(self):
issuer: Issuer = IssuerFactory()
request: OrganisationRequest = OrganisationRequestFactory.build(
type_id=RequestOriginConstants.MEDIATHEQUE.value,
public_service_delegation_attestation=False,
france_services_number=444888555,
)
self.__open_form_url(issuer)
Expand Down Expand Up @@ -69,7 +68,6 @@ def test_form_other_type_and_private_organisation(self):
issuer: Issuer = IssuerFactory()
request: OrganisationRequest = OrganisationRequestFactory.build(
type_id=RequestOriginConstants.OTHER.value,
public_service_delegation_attestation=False,
partner_administration="Beta.Gouv",
)
self.__open_form_url(issuer)
Expand Down Expand Up @@ -161,7 +159,6 @@ def test_submit_both_known_organisation_type_and_other_type(self):
issuer: Issuer = IssuerFactory()
request: OrganisationRequest = OrganisationRequestFactory.build(
type_id=RequestOriginConstants.MEDIATHEQUE.value,
public_service_delegation_attestation=False,
)
self.__open_form_url(issuer)

Expand Down
8 changes: 0 additions & 8 deletions aidants_connect_habilitation/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ def test_404_on_bad_issuer_id(self):
self.assertEqual(response.status_code, 404)

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
response: HttpResponse = self.client.post(
reverse(self.pattern_name, kwargs={"issuer_id": uuid}), cleaned_data
)
Expand Down Expand Up @@ -510,7 +509,6 @@ def test_404_on_bad_issuer_id(self):
uuid = uuid4()

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
response = self.client.post(
self.get_url(self.organisation.issuer.issuer_id, uuid),
cleaned_data,
Expand All @@ -522,7 +520,6 @@ def test_404_on_bad_uuid(self):
self.assertEqual(response.status_code, 404)

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
cleaned_data["type"] = cleaned_data["type"].id

response = self.client.post(
Expand Down Expand Up @@ -636,7 +633,6 @@ def test_404_on_bad_issuer_id(self):
uuid = uuid4()

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
response = self.client.post(
self.get_url(self.organisation.issuer.issuer_id, uuid),
cleaned_data,
Expand All @@ -652,7 +648,6 @@ def test_404_on_unrelated_issuer_id(self):
self.assertEqual(response.status_code, 404)

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
response = self.client.post(
self.get_url(unrelated_issuer.issuer_id, self.organisation.uuid),
cleaned_data,
Expand All @@ -666,7 +661,6 @@ def test_404_on_bad_uuid(self):
self.assertEqual(response.status_code, 404)

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
cleaned_data["type"] = cleaned_data["type"].id

response = self.client.post(
Expand Down Expand Up @@ -776,7 +770,6 @@ def test_404_on_bad_issuer_id(self):
uuid = uuid4()

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
response = self.client.post(
self.get_url(organisation.issuer.issuer_id, uuid),
cleaned_data,
Expand All @@ -790,7 +783,6 @@ def test_404_on_bad_uuid(self):
self.assertEqual(response.status_code, 404)

cleaned_data = utils.get_form(OrganisationRequestForm).clean()
cleaned_data["public_service_delegation_attestation"] = ""
cleaned_data["type"] = cleaned_data["type"].id

response = self.client.post(
Expand Down

0 comments on commit cabd264

Please sign in to comment.