From 5cca528b5794abf517fdb594d25c2a85826b031e Mon Sep 17 00:00:00 2001 From: ortyomka Date: Sun, 20 Oct 2024 20:06:33 +0200 Subject: [PATCH] fix blake formatting --- .../mock_server/simple_server.py | 4 ++-- .../test_url_content_type_override/test.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/integration/test_url_content_type_override/mock_server/simple_server.py b/tests/integration/test_url_content_type_override/mock_server/simple_server.py index 70c1144fb46..09313723937 100644 --- a/tests/integration/test_url_content_type_override/mock_server/simple_server.py +++ b/tests/integration/test_url_content_type_override/mock_server/simple_server.py @@ -7,11 +7,11 @@ class RequestHandler(http.server.BaseHTTPRequestHandler): if self.path != "/": return "Wrong Path", 400 - content_type = self.headers.get('Content-Type') + content_type = self.headers.get("Content-Type") if content_type is None: return "No Content-Type", 400 - correct_content_type = self.headers.get('X-Test-Answer') + correct_content_type = self.headers.get("X-Test-Answer") if correct_content_type is None: return "No X-Test-Answer", 400 diff --git a/tests/integration/test_url_content_type_override/test.py b/tests/integration/test_url_content_type_override/test.py index a08f0464b91..73990264552 100644 --- a/tests/integration/test_url_content_type_override/test.py +++ b/tests/integration/test_url_content_type_override/test.py @@ -40,15 +40,15 @@ def start_cluster(): def test_url_content_type_override(): assert ( - "200" - == node.query( - f"INSERT INTO FUNCTION url('http://{SERVER_HOSTNAME}:{SERVER_PORT}/', JSONEachRow, 'x UInt8', headers('X-Test-Answer' = 'application/x-ndjson; charset=UTF-8')) SELECT 1)" - ).strip() + "200" + == node.query( + f"INSERT INTO FUNCTION url('http://{SERVER_HOSTNAME}:{SERVER_PORT}/', JSONEachRow, 'x UInt8', headers('X-Test-Answer' = 'application/x-ndjson; charset=UTF-8')) SELECT 1)" + ).strip() ) assert ( - "200" - == node.query( - f"INSERT INTO FUNCTION url('http://{SERVER_HOSTNAME}:{SERVER_PORT}/', JSONEachRow, 'x UInt8', headers('Content-Type' = 'upyachka', 'X-Test-Answer' = 'upyachka')) SELECT 1)" - ).strip() + "200" + == node.query( + f"INSERT INTO FUNCTION url('http://{SERVER_HOSTNAME}:{SERVER_PORT}/', JSONEachRow, 'x UInt8', headers('Content-Type' = 'upyachka', 'X-Test-Answer' = 'upyachka')) SELECT 1)" + ).strip() )