File tree Expand file tree Collapse file tree
tests/integration/standard Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments