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)