Skip to content

Commit 22f35da

Browse files
committed
1
1 parent 5225556 commit 22f35da

1 file changed

Lines changed: 22 additions & 24 deletions

File tree

tests/integration/standard/test_application_info.py

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,26 @@ def test_create_session_and_check_system_views_clients(self):
6666
'client_id': 'some-client-id',
6767
},
6868
]:
69-
with self.subTest(**application_info_args):
70-
try:
71-
cluster = TestCluster(
72-
application_info=ApplicationInfo(
73-
**application_info_args
74-
))
75-
76-
found = False
77-
for row in cluster.connect().execute("select client_options from system_views.clients"):
78-
if not row[0]:
79-
continue
80-
for attribute_key, startup_key in self.attribute_to_startup_key.items():
81-
expected_value = application_info_args.get(attribute_key)
82-
if expected_value:
83-
if row[0].get(startup_key) != expected_value:
84-
break
85-
else:
86-
# Check that it is absent
87-
if row[0].get(startup_key, None) is not None:
88-
break
69+
cluster = TestCluster(
70+
application_info=ApplicationInfo(
71+
**application_info_args
72+
))
73+
try:
74+
found = False
75+
for row in cluster.connect().execute("select client_options from system_views.clients"):
76+
if not row[0]:
77+
continue
78+
for attribute_key, startup_key in self.attribute_to_startup_key.items():
79+
expected_value = application_info_args.get(attribute_key)
80+
if expected_value:
81+
if row[0].get(startup_key) != expected_value:
82+
break
8983
else:
90-
found = True
91-
assert found
92-
finally:
93-
cluster.shutdown()
84+
# Check that it is absent
85+
if row[0].get(startup_key, None) is not None:
86+
break
87+
else:
88+
found = True
89+
assert found
90+
finally:
91+
cluster.shutdown()

0 commit comments

Comments
 (0)