Debian Codegraph @

tests/wire/test_events.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3
4 def test_events_subscribe() -> None:
5 """Test subscribe endpoint with WireMock"""
6 test_id = "events.subscribe.0"
7 client = get_client(test_id)
8 for _ in client.events.subscribe(
9 from_="from",
10 from_timestamp="from_timestamp",
11 event_type=["connection.created"],
12 ):
13 pass
14 verify_request_count(
15 test_id,
16 "GET",
17 "/events",
18 {"from": "from", "from_timestamp": "from_timestamp", "event_type": "connection.created"},
19 1,
20 )