Debian Codegraph @

tests/wire/test_prompts_rendering.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3 from auth0.management import AculConfigsItem
4
5
6 def test_prompts_rendering_list_() -> None:
7 """Test list endpoint with WireMock"""
8 test_id = "prompts.rendering.list_.0"
9 client = get_client(test_id)
10 client.prompts.rendering.list(
11 fields="fields",
12 include_fields=True,
13 page=1,
14 per_page=1,
15 include_totals=True,
16 prompt="prompt",
17 screen="screen",
18 rendering_mode="advanced",
19 )
20 verify_request_count(
21 test_id,
22 "GET",
23 "/prompts/rendering",
24 {
25 "fields": "fields",
26 "include_fields": "true",
27 "page": "1",
28 "per_page": "1",
29 "include_totals": "true",
30 "prompt": "prompt",
31 "screen": "screen",
32 "rendering_mode": "advanced",
33 },
34 1,
35 )
36
37
38 def test_prompts_rendering_bulk_update() -> None:
39 """Test bulkUpdate endpoint with WireMock"""
40 test_id = "prompts.rendering.bulk_update.0"
41 client = get_client(test_id)
42 client.prompts.rendering.bulk_update(
43 configs=[
44 AculConfigsItem(
45 prompt="login",
46 screen="login",
47 )
48 ],
49 )
50 verify_request_count(test_id, "PATCH", "/prompts/rendering", None, 1)
51
52
53 def test_prompts_rendering_get() -> None:
54 """Test get endpoint with WireMock"""
55 test_id = "prompts.rendering.get.0"
56 client = get_client(test_id)
57 client.prompts.rendering.get(
58 prompt="login",
59 screen="login",
60 )
61 verify_request_count(test_id, "GET", "/prompts/login/screen/login/rendering", None, 1)
62
63
64 def test_prompts_rendering_update() -> None:
65 """Test update endpoint with WireMock"""
66 test_id = "prompts.rendering.update.0"
67 client = get_client(test_id)
68 client.prompts.rendering.update(
69 prompt="login",
70 screen="login",
71 )
72 verify_request_count(test_id, "PATCH", "/prompts/login/screen/login/rendering", None, 1)