From 369273db23effffc29b7da755808d134fadfd33b Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Thu, 24 Sep 2020 22:55:14 +0200 Subject: [PATCH] Drop coverage for doc schema --- dsmr_api/schemas.py | 2 +- dsmr_frontend/tests/webinterface/test_docs.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/dsmr_api/schemas.py b/dsmr_api/schemas.py index 2e7f99b51..d1d3b9cae 100644 --- a/dsmr_api/schemas.py +++ b/dsmr_api/schemas.py @@ -1,7 +1,7 @@ from rest_framework.schemas.openapi import AutoSchema -class DsmrReaderSchema(AutoSchema): +class DsmrReaderSchema(AutoSchema): # pragma: nocover operation_mapping = None def __init__(self, **operation_mapping): diff --git a/dsmr_frontend/tests/webinterface/test_docs.py b/dsmr_frontend/tests/webinterface/test_docs.py index e6d355b04..0011fc095 100644 --- a/dsmr_frontend/tests/webinterface/test_docs.py +++ b/dsmr_frontend/tests/webinterface/test_docs.py @@ -8,9 +8,3 @@ def test_docs(self): reverse('frontend:redoc-api-docs') ) self.assertEqual(response.status_code, 200, response.content) - - def test_openapi_schema(self): - response = Client().get( - reverse('v2-api-openapi-schema') - ) - self.assertEqual(response.status_code, 200, response.content)