@@ -141,10 +141,6 @@ class TestShell(osc_lib_test_utils.TestShell):
141141 # Full name of the OpenStackShell class to test (cliff.app.App subclass)
142142 shell_class_name = "openstackclient.shell.OpenStackShell"
143143
144- # TODO(dtroyer): remove this once the shell_class_patch patch is released
145- # in osc-lib
146- app_patch = shell_class_name
147-
148144 def setUp (self ):
149145 super (TestShell , self ).setUp ()
150146 # TODO(dtroyer): remove this once the shell_class_patch patch is
@@ -162,7 +158,6 @@ def _assert_admin_token_auth(self, cmd_options, default_args):
162158 )
163159 _cmd = cmd_options + " list role"
164160 osc_lib_test_utils .fake_execute (_shell , _cmd )
165- print ("_shell: %s" % _shell )
166161
167162 self .app .assert_called_with (["list" , "role" ])
168163 self .assertEqual (
@@ -178,15 +173,14 @@ def _assert_admin_token_auth(self, cmd_options, default_args):
178173
179174 def _assert_token_auth (self , cmd_options , default_args ):
180175 with mock .patch (
181- self .app_patch + ".initialize_app" ,
176+ self .shell_class_name + ".initialize_app" ,
182177 self .app ,
183178 ):
184179 _shell = osc_lib_test_utils .make_shell (
185180 shell_class = self .shell_class ,
186181 )
187182 _cmd = cmd_options + " list role"
188183 osc_lib_test_utils .fake_execute (_shell , _cmd )
189- print ("_shell: %s" % _shell )
190184
191185 self .app .assert_called_with (["list" , "role" ])
192186 self .assertEqual (
0 commit comments