Skip to content

Commit c7735a3

Browse files
committed
Remove trailing / from route
1 parent 5e3aad9 commit c7735a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

http_app/routes/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def event_schema_list() -> List[str]:
6666

6767

6868
@router.post(
69-
"/",
69+
"",
7070
openapi_extra={
7171
"requestBody": {
7272
"content": {

tests/http_app/routes/test_events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def test_event_returns_204(testapp):
4141
)
4242
async with AsyncClient(app=testapp, base_url="http://test") as ac:
4343
response = await ac.post(
44-
"/events/",
44+
"/events",
4545
headers={"content-type": "application/cloudevents+json; charset=UTF-8"},
4646
content=fake_event.model_dump_json(),
4747
)
@@ -55,7 +55,7 @@ async def test_malformed_event_returns_422(testapp):
5555
fake_event.dataschema = None
5656
async with AsyncClient(app=testapp, base_url="http://test") as ac:
5757
response = await ac.post(
58-
"/events/",
58+
"/events",
5959
headers={"content-type": "application/cloudevents+json; charset=UTF-8"},
6060
content=fake_event.model_dump_json(),
6161
)
@@ -68,7 +68,7 @@ async def test_wrong_content_type_returns_422(testapp):
6868
)
6969
async with AsyncClient(app=testapp, base_url="http://test") as ac:
7070
response = await ac.post(
71-
"/events/",
71+
"/events",
7272
headers={"content-type": "application/json"},
7373
content=fake_event.model_dump_json(),
7474
)

0 commit comments

Comments
 (0)