Debian Codegraph @

tests/wire/test_logs.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3
4 def test_logs_list_() -> None:
5 """Test list endpoint with WireMock"""
6 test_id = "logs.list_.0"
7 client = get_client(test_id)
8 client.logs.list(
9 page=1,
10 per_page=1,
11 sort="sort",
12 fields="fields",
13 include_fields=True,
14 include_totals=True,
15 search="search",
16 )
17 verify_request_count(
18 test_id,
19 "GET",
20 "/logs",
21 {
22 "page": "1",
23 "per_page": "1",
24 "sort": "sort",
25 "fields": "fields",
26 "include_fields": "true",
27 "include_totals": "true",
28 "search": "search",
29 },
30 1,
31 )
32
33
34 def test_logs_get() -> None:
35 """Test get endpoint with WireMock"""
36 test_id = "logs.get.0"
37 client = get_client(test_id)
38 client.logs.get(
39 id="id",
40 )
41 verify_request_count(test_id, "GET", "/logs/id", None, 1)