From 2e3fced44d3ba7aad5698ffe489f8bff68616a3a Mon Sep 17 00:00:00 2001 From: hweawer Date: Thu, 3 Oct 2024 16:17:29 +0200 Subject: [PATCH] Linter --- tests/metrics/test_healthcheck_server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/metrics/test_healthcheck_server.py b/tests/metrics/test_healthcheck_server.py index 3bc6d3bed..47eefcafb 100644 --- a/tests/metrics/test_healthcheck_server.py +++ b/tests/metrics/test_healthcheck_server.py @@ -1,3 +1,4 @@ +# pylint: disable=protected-access import unittest from datetime import datetime, timedelta from http import HTTPStatus @@ -18,7 +19,7 @@ class TestPulseFunction(unittest.TestCase): @patch('src.variables.HEALTHCHECK_SERVER_PORT', 8000) def test_pulse_success(self, mock_request): """Test that pulse successfully pings the healthcheck server.""" - mock_request.get(f'http://localhost:8000/pulse/', status_code=HTTPStatus.OK) + mock_request.get('http://localhost:8000/pulse/', status_code=HTTPStatus.OK) with patch('logging.Logger.warning') as mock_warning: pulse() @@ -28,7 +29,7 @@ def test_pulse_success(self, mock_request): @patch('src.variables.HEALTHCHECK_SERVER_PORT', 8000) def test_pulse_server_not_responding(self, mock_request): """Test that pulse logs a warning when the server is not responding.""" - mock_request.get(f'http://localhost:8000/pulse/', exc=requests.ConnectionError) + mock_request.get('http://localhost:8000/pulse/', exc=requests.ConnectionError) with patch('logging.Logger.warning') as mock_warning: pulse()