diff --git a/tests/proxytest.py b/tests/proxytest.py index 13d9c4d8..3e389704 100644 --- a/tests/proxytest.py +++ b/tests/proxytest.py @@ -147,7 +147,7 @@ async def wait_for_services(urls): ), ], ) -async def _test_add_get_delete( +async def test_add_get_delete( request, proxy, launch_backend, routespec, existing_routes, event_loop ): default_target = "http://127.0.0.1:9000" @@ -284,7 +284,7 @@ async def _wait_for_deletion(): await test_route_exist(spec, extra_backends[i]) -async def _test_get_all_routes(proxy, launch_backend): +async def test_get_all_routes(proxy, launch_backend): routespecs = ["/proxy/path1", "/proxy/path2/", "/proxy/path3/"] targets = [ "http://127.0.0.1:9900", @@ -330,7 +330,7 @@ async def _test_get_all_routes(proxy, launch_backend): assert routes == expected_output -async def _test_host_origin_headers(proxy, launch_backend): +async def test_host_origin_headers(proxy, launch_backend): routespec = "/user/username/" target = "http://127.0.0.1:9000" data = {} @@ -374,7 +374,7 @@ async def _test_host_origin_headers(proxy, launch_backend): @pytest.mark.parametrize("username", ["zoe", "50fia", "秀樹", "~TestJH", "has@"]) -async def _test_check_routes(proxy, username): +async def test_check_routes(proxy, username): # fill out necessary attributes for check_routes proxy.app = MockApp() proxy.hub = proxy.app.hub