Debian Codegraph @

tests/wire/test_prompts_customText.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3
4 def test_prompts_customText_get() -> None:
5 """Test get endpoint with WireMock"""
6 test_id = "prompts.custom_text.get.0"
7 client = get_client(test_id)
8 client.prompts.custom_text.get(
9 prompt="login",
10 language="am",
11 )
12 verify_request_count(test_id, "GET", "/prompts/login/custom-text/am", None, 1)
13
14
15 def test_prompts_customText_set_() -> None:
16 """Test set endpoint with WireMock"""
17 test_id = "prompts.custom_text.set_.0"
18 client = get_client(test_id)
19 client.prompts.custom_text.set(
20 prompt="login",
21 language="am",
22 request={"key": "value"},
23 )
24 verify_request_count(test_id, "PUT", "/prompts/login/custom-text/am", None, 1)