| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_clients_connections_get() -> None: |
| 5 | """Test get endpoint with WireMock""" |
| 6 | test_id = "clients.connections.get.0" |
| 7 | client = get_client(test_id) |
| 8 | client.clients.connections.get( |
| 9 | id="id", |
| 10 | strategy=["ad"], |
| 11 | from_="from", |
| 12 | take=1, |
| 13 | fields="fields", |
| 14 | include_fields=True, |
| 15 | ) |
| 16 | verify_request_count( |
| 17 | test_id, |
| 18 | "GET", |
| 19 | "/clients/id/connections", |
| 20 | {"strategy": "ad", "from": "from", "take": "1", "fields": "fields", "include_fields": "true"}, |
| 21 | 1, |
| 22 | ) |