From 3faded4f26c82f6c5c5661efe53e0747870d80b5 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 8 Nov 2018 12:33:58 +0000 Subject: [PATCH] Remove redundant test cases --- tests/test_exceptions.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index a18ef324..2896295b 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -43,25 +43,6 @@ app = ExceptionMiddleware(router) client = TestClient(app) -# def test_server_error(): -# with pytest.raises(RuntimeError): -# response = client.get("/runtime_error") -# -# allow_500_client = TestClient(app, raise_server_exceptions=False) -# response = allow_500_client.get("/runtime_error") -# assert response.status_code == 500 -# assert response.text == "Internal Server Error" - - -# def test_debug_enabled(): -# app = ExceptionMiddleware(router) -# app.debug = True -# allow_500_client = TestClient(app, raise_server_exceptions=False) -# response = allow_500_client.get("/runtime_error") -# assert response.status_code == 500 -# assert "RuntimeError" in response.text - - def test_not_acceptable(): response = client.get("/not_acceptable") assert response.status_code == 406