| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_branding_phone_templates_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "branding.phone.templates.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.branding.phone.templates.list( |
| 9 | disabled=True, |
| 10 | ) |
| 11 | verify_request_count(test_id, "GET", "/branding/phone/templates", {"disabled": "true"}, 1) |
| 12 | |
| 13 | |
| 14 | def test_branding_phone_templates_create() -> None: |
| 15 | """Test create endpoint with WireMock""" |
| 16 | test_id = "branding.phone.templates.create.0" |
| 17 | client = get_client(test_id) |
| 18 | client.branding.phone.templates.create() |
| 19 | verify_request_count(test_id, "POST", "/branding/phone/templates", None, 1) |
| 20 | |
| 21 | |
| 22 | def test_branding_phone_templates_get() -> None: |
| 23 | """Test get endpoint with WireMock""" |
| 24 | test_id = "branding.phone.templates.get.0" |
| 25 | client = get_client(test_id) |
| 26 | client.branding.phone.templates.get( |
| 27 | id="id", |
| 28 | ) |
| 29 | verify_request_count(test_id, "GET", "/branding/phone/templates/id", None, 1) |
| 30 | |
| 31 | |
| 32 | def test_branding_phone_templates_delete() -> None: |
| 33 | """Test delete endpoint with WireMock""" |
| 34 | test_id = "branding.phone.templates.delete.0" |
| 35 | client = get_client(test_id) |
| 36 | client.branding.phone.templates.delete( |
| 37 | id="id", |
| 38 | ) |
| 39 | verify_request_count(test_id, "DELETE", "/branding/phone/templates/id", None, 1) |
| 40 | |
| 41 | |
| 42 | def test_branding_phone_templates_update() -> None: |
| 43 | """Test update endpoint with WireMock""" |
| 44 | test_id = "branding.phone.templates.update.0" |
| 45 | client = get_client(test_id) |
| 46 | client.branding.phone.templates.update( |
| 47 | id="id", |
| 48 | ) |
| 49 | verify_request_count(test_id, "PATCH", "/branding/phone/templates/id", None, 1) |
| 50 | |
| 51 | |
| 52 | def test_branding_phone_templates_reset() -> None: |
| 53 | """Test reset endpoint with WireMock""" |
| 54 | test_id = "branding.phone.templates.reset.0" |
| 55 | client = get_client(test_id) |
| 56 | client.branding.phone.templates.reset( |
| 57 | id="id", |
| 58 | request={"key": "value"}, |
| 59 | ) |
| 60 | verify_request_count(test_id, "PATCH", "/branding/phone/templates/id/reset", None, 1) |
| 61 | |
| 62 | |
| 63 | def test_branding_phone_templates_test() -> None: |
| 64 | """Test test endpoint with WireMock""" |
| 65 | test_id = "branding.phone.templates.test.0" |
| 66 | client = get_client(test_id) |
| 67 | client.branding.phone.templates.test( |
| 68 | id="id", |
| 69 | to="to", |
| 70 | ) |
| 71 | verify_request_count(test_id, "POST", "/branding/phone/templates/id/try", None, 1) |