From 3741ddbedd36c25a7eebb2b9073f6fd74a1c1ed6 Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Wed, 1 Nov 2023 23:35:55 +0000 Subject: [PATCH] Removes test comments (#633) * Removes test comments Signed-off-by: Elena Kolevska * Removes blank line Signed-off-by: Elena Kolevska --------- Signed-off-by: Elena Kolevska Co-authored-by: Bernd Verst --- tests/conf/helpers_test.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/conf/helpers_test.py b/tests/conf/helpers_test.py index 90aa8166..66c937ff 100644 --- a/tests/conf/helpers_test.py +++ b/tests/conf/helpers_test.py @@ -137,21 +137,12 @@ def test_parse_grpc_endpoint(self): ] for testcase in testcases: - # if testcase["error"]: - # with self.assertRaises(ValueError): - # GrpcEndpoint(testcase["url"]) - # else: - # url = GrpcEndpoint(testcase["url"]) - # assert url.endpoint == testcase["endpoint"] - # assert url.tls == testcase["secure"] - # assert url.hostname == testcase["host"] - # assert url.port == str(testcase["port"]) - try: + if testcase["error"]: + with self.assertRaises(ValueError): + GrpcEndpoint(testcase["url"]) + else: url = GrpcEndpoint(testcase["url"]) - print(f'{testcase["url"]}\t {url.endpoint} \t{url.hostname}\t{url.port}\t{url.tls}') assert url.endpoint == testcase["endpoint"] assert url.tls == testcase["secure"] assert url.hostname == testcase["host"] assert url.port == str(testcase["port"]) - except ValueError as error: - print(f'{testcase["url"]}\t \t\t\t\t Error: {error}')