| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_selfServiceProfiles_customText_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "self_service_profiles.custom_text.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.self_service_profiles.custom_text.list( |
| 9 | id="id", |
| 10 | language="en", |
| 11 | page="get-started", |
| 12 | ) |
| 13 | verify_request_count(test_id, "GET", "/self-service-profiles/id/custom-text/en/get-started", None, 1) |
| 14 | |
| 15 | |
| 16 | def test_selfServiceProfiles_customText_set_() -> None: |
| 17 | """Test set endpoint with WireMock""" |
| 18 | test_id = "self_service_profiles.custom_text.set_.0" |
| 19 | client = get_client(test_id) |
| 20 | client.self_service_profiles.custom_text.set( |
| 21 | id="id", |
| 22 | language="en", |
| 23 | page="get-started", |
| 24 | request={"key": "value"}, |
| 25 | ) |
| 26 | verify_request_count(test_id, "PUT", "/self-service-profiles/id/custom-text/en/get-started", None, 1) |