Skip to content

Commit

Permalink
Removes test comments (#633)
Browse files Browse the repository at this point in the history
* Removes test comments

Signed-off-by: Elena Kolevska <[email protected]>

* Removes blank line

Signed-off-by: Elena Kolevska <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
  • Loading branch information
elena-kolevska and berndverst authored Nov 1, 2023
1 parent 3fb84ca commit 3741ddb
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions tests/conf/helpers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

0 comments on commit 3741ddb

Please sign in to comment.