Fix web server cleanup

This commit is contained in:
Fang-Pen Lin
2025-11-13 09:21:43 -08:00
parent d7cf08790b
commit f7c76abe82
2 changed files with 58 additions and 1 deletions
+1 -1
View File
@@ -202,6 +202,6 @@ def before_all(context: Context):
context.http_client = httpx.Client(base_url=BASE_URL)
def after_feature(context: Context, feature: typing.Any):
def after_scenario(context: Context, scenario: typing.Any):
if hasattr(context, "web_server"):
context.web_server.shutdown_and_server_close()