From 71ce339a9e87575875ef9ae06551bb9dea652416 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 26 Oct 2024 17:12:29 +0200 Subject: [PATCH] CLI: Fix `test_cli_run` on Windows --- tests/test_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 89730a08..1beafcf8 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -103,9 +103,8 @@ def test_cli_run(capfd): # Invoke `responder run`. # Start a Responder service instance in the background, using its CLI. # Make it terminate itself after serving one HTTP request. - server = ResponderServer( - target="examples/helloworld.py", port=random_port(), limit_max_requests=1 - ) + target = Path("examples") / "helloworld.py" + server = ResponderServer(target=str(target), port=random_port(), limit_max_requests=1) try: server.start() wait_server(server.port)