From 2a17599910cf78cfafcdb1dece4bdacede1ae7e2 Mon Sep 17 00:00:00 2001 From: Nick Jackson Date: Thu, 9 Nov 2023 15:45:09 +0000 Subject: [PATCH] Removed unnecessary TODO comments --- src/openapi_server/connect.py | 2 +- tests/test_status_api.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openapi_server/connect.py b/src/openapi_server/connect.py index 48fe849..61a841e 100644 --- a/src/openapi_server/connect.py +++ b/src/openapi_server/connect.py @@ -7,7 +7,7 @@ from openapi_server.models.extra_models import TokenModel from openapi_server.security_api import get_token_basic -environ.Env.read_env("../.env") # TODO this is hideous +environ.Env.read_env("../.env") MARKLOGIC_HOST = os.environ["MARKLOGIC_API_CLIENT_HOST"] SECURITY_TOKEN_MODEL = Security(get_token_basic) diff --git a/tests/test_status_api.py b/tests/test_status_api.py index 402a0c1..ff956b9 100644 --- a/tests/test_status_api.py +++ b/tests/test_status_api.py @@ -24,7 +24,6 @@ def test_get_status_no_such_user(mocked_client=None): mocked_client.return_value.user_can_view_unpublished_judgments.assert_called_with( "user", ) - # TODO: This will break when only_published becomes silently false. @patch("openapi_server.apis.status_api.client_for_basic_auth")