| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_prompts_partials_get() -> None: |
| 5 | """Test get endpoint with WireMock""" |
| 6 | test_id = "prompts.partials.get.0" |
| 7 | client = get_client(test_id) |
| 8 | client.prompts.partials.get( |
| 9 | prompt="login", |
| 10 | ) |
| 11 | verify_request_count(test_id, "GET", "/prompts/login/partials", None, 1) |
| 12 | |
| 13 | |
| 14 | def test_prompts_partials_set_() -> None: |
| 15 | """Test set endpoint with WireMock""" |
| 16 | test_id = "prompts.partials.set_.0" |
| 17 | client = get_client(test_id) |
| 18 | client.prompts.partials.set( |
| 19 | prompt="login", |
| 20 | request={"key": "value"}, |
| 21 | ) |
| 22 | verify_request_count(test_id, "PUT", "/prompts/login/partials", None, 1) |