Skip to content

Commit c7fbe70

Browse files
committed
Legacy-testing: add support for POST
1 parent 0785638 commit c7fbe70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_init.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ async def setup_legacy_app(
167167
"PUT", CORE_APPLIANCES_TAIL, self.smile_http_accept
168168
)
169169
else:
170+
app.router.add_route("POST", CORE_APPLIANCES_TAIL, self.smile_http_ok)
170171
app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_http_ok)
171172
else:
173+
app.router.add_route("POST", CORE_APPLIANCES_TAIL, self.smile_timeout)
172174
app.router.add_route("PUT", CORE_LOCATIONS_TAIL, self.smile_timeout)
173175
app.router.add_route("PUT", CORE_RULES_TAIL, self.smile_timeout)
174176
app.router.add_route("PUT", CORE_APPLIANCES_TAIL, self.smile_timeout)

0 commit comments

Comments
 (0)