Debian Codegraph @

tests/wire/test_groups.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3
4 def test_groups_list_() -> None:
5 """Test list endpoint with WireMock"""
6 test_id = "groups.list_.0"
7 client = get_client(test_id)
8 client.groups.list(
9 connection_id="connection_id",
10 name="name",
11 external_id="external_id",
12 search="search",
13 fields="fields",
14 include_fields=True,
15 from_="from",
16 take=1,
17 )
18 verify_request_count(
19 test_id,
20 "GET",
21 "/groups",
22 {
23 "connection_id": "connection_id",
24 "name": "name",
25 "external_id": "external_id",
26 "search": "search",
27 "fields": "fields",
28 "include_fields": "true",
29 "from": "from",
30 "take": "1",
31 },
32 1,
33 )
34
35
36 def test_groups_get() -> None:
37 """Test get endpoint with WireMock"""
38 test_id = "groups.get.0"
39 client = get_client(test_id)
40 client.groups.get(
41 id="id",
42 )
43 verify_request_count(test_id, "GET", "/groups/id", None, 1)
44
45
46 def test_groups_delete() -> None:
47 """Test delete endpoint with WireMock"""
48 test_id = "groups.delete.0"
49 client = get_client(test_id)
50 client.groups.delete(
51 id="id",
52 )
53 verify_request_count(test_id, "DELETE", "/groups/id", None, 1)