From 7c796113e83373063675a2c4189fe3ce115897f0 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Mon, 1 Jul 2024 06:34:05 +0000 Subject: [PATCH] fix style --- .../test_accept_invalid_certificate/test.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/integration/test_accept_invalid_certificate/test.py b/tests/integration/test_accept_invalid_certificate/test.py index 13431f39854..87229d75f90 100644 --- a/tests/integration/test_accept_invalid_certificate/test.py +++ b/tests/integration/test_accept_invalid_certificate/test.py @@ -19,6 +19,7 @@ instance = cluster.add_instance( ], ) + @pytest.fixture(scope="module", autouse=True) def started_cluster(): try: @@ -28,6 +29,7 @@ def started_cluster(): finally: cluster.shutdown() + config_default = """ """ @@ -71,23 +73,20 @@ def execute_query_native(node, query, config): def test_default(): with pytest.raises(Exception) as err: - execute_query_native( - instance, "SELECT 1", config_default - ) + execute_query_native(instance, "SELECT 1", config_default) assert "certificate verify failed" in str(err.value) + def test_accept(): - assert ( - execute_query_native( - instance, "SELECT 1", config_accept - ) - == "1\n" - ) + assert execute_query_native(instance, "SELECT 1", config_accept) == "1\n" + def test_connection_accept(): assert ( execute_query_native( - instance, "SELECT 1", config_connection_accept.format(ip_address=f"{instance.ip_address}") + instance, + "SELECT 1", + config_connection_accept.format(ip_address=f"{instance.ip_address}"), ) == "1\n" )