Debian Codegraph @

tests/wire/test_connections_clients.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3 from auth0.management import UpdateEnabledClientConnectionsRequestContentItem
4
5
6 def test_connections_clients_get() -> None:
7 """Test get endpoint with WireMock"""
8 test_id = "connections.clients.get.0"
9 client = get_client(test_id)
10 client.connections.clients.get(
11 id="id",
12 take=1,
13 from_="from",
14 )
15 verify_request_count(test_id, "GET", "/connections/id/clients", {"take": "1", "from": "from"}, 1)
16
17
18 def test_connections_clients_update() -> None:
19 """Test update endpoint with WireMock"""
20 test_id = "connections.clients.update.0"
21 client = get_client(test_id)
22 client.connections.clients.update(
23 id="id",
24 request=[
25 UpdateEnabledClientConnectionsRequestContentItem(
26 client_id="client_id",
27 status=True,
28 )
29 ],
30 )
31 verify_request_count(test_id, "PATCH", "/connections/id/clients", None, 1)