Skip to content

Commit 64f1bd9

Browse files
committed
update ping route
1 parent 35b8d50 commit 64f1bd9

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

eventsourcingdb/handlers/ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# CloudEvent field names
1111
SPECVERSION_FIELD = "specversion"
1212
TYPE_FIELD = "type"
13-
PING_RECEIVED_TYPE = "io.eventsourcingdb.ping-received"
13+
PING_RECEIVED_TYPE = "io.eventsourcingdb.api.ping-received"
1414

1515

1616
async def ping(client: AbstractBaseClient) -> None:

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ packages = [{include = "eventsourcingdb"}]
1515

1616
[tool.poetry.dependencies]
1717
python = "^3.13"
18-
aiohttp = "3.11.16"
18+
aiohttp = "^3.11.16"
1919

2020
[tool.poetry.group.dev.dependencies]
21-
pytest = "8.3.5"
22-
flask = "3.1.0"
23-
pylint = "3.3.5"
24-
autopep8 = "2.3.2"
25-
pytest-timeout = "2.3.1"
26-
pytest-asyncio = "0.25.3"
21+
pytest = "^8.3.5"
22+
flask = "^3.1.0"
23+
pylint = "^3.3.5"
24+
autopep8 = "^2.3.2"
25+
pytest-timeout = "^2.3.1"
26+
pytest-asyncio = "^0.25.3"

tests/test_read_event_types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ async def test_reads_all_types_of_existing_events_and_registered_schemas(
5050
),
5151
])
5252

53-
await client.register_event_schema("org.ban.ban", '{"type":"object"}')
54-
await client.register_event_schema("org.bing.chilling", '{"type":"object"}')
53+
# Use Python dictionaries instead of JSON strings
54+
await client.register_event_schema("org.ban.ban", {"type": "object"})
55+
await client.register_event_schema("org.bing.chilling", {"type": "object"})
5556

5657
actual_event_types: set[EventType] = set()
5758
async for event_type in client.read_event_types():

0 commit comments

Comments
 (0)