From 303abfd90b43e92ebae27cdd33a67ac76b0575eb Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 5 Oct 2022 21:39:47 +0200 Subject: [PATCH] Remove test that is conceptually wrong according to the deprecation --- tests/test_routing.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/test_routing.py b/tests/test_routing.py index e2c2eb2c4b..cd4af37022 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -864,24 +864,6 @@ def test_mount_asgi_app_with_middleware_url_path_for() -> None: mounted_app_with_middleware.url_path_for("route") -def test_add_route_to_app_after_mount( - test_client_factory: typing.Callable[..., TestClient], -) -> None: - """Checks that Mount will pick up routes - added to the underlying app after it is mounted - """ - inner_app = Router() - app = Mount("/http", app=inner_app) - inner_app.add_route( - "/inner", - endpoint=homepage, - methods=["GET"], - ) - client = test_client_factory(app) - response = client.get("/http/inner") - assert response.status_code == 200 - - def test_exception_on_mounted_apps(test_client_factory): def exc(request): raise Exception("Exc")