summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kajinami <tkajinam@redhat.com>2021-12-21 21:12:43 +0900
committerDouglas Mendizábal <dmendiza@redhat.com>2022-05-16 16:21:18 -0500
commitca596f05b1264dc376ced7086e9d68641022c0d2 (patch)
tree1cea1f6641c70240bfeb04704374328ff60b5714
parent8e3a391fd63c0a319071fc55996faab3e6699a0f (diff)
downloadpython-barbicanclient-ca596f05b1264dc376ced7086e9d68641022c0d2.tar.gz
Fix unit test failue with cliff>=3.5.0
This change fixes the failure in unit tests, which was caused by the different exception raised by HelpExit since cliff 3.5.0[1]. [1] 7fdd7cb4c50a33233a7052fc345221cc7b935889 Story: 2010022 Task: 45241 Change-Id: I07e51211befa0296d15e6dbdd726c7a989678183
-rw-r--r--barbicanclient/tests/test_barbican.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/barbicanclient/tests/test_barbican.py b/barbicanclient/tests/test_barbican.py
index 22dfca4..c34be55 100644
--- a/barbicanclient/tests/test_barbican.py
+++ b/barbicanclient/tests/test_barbican.py
@@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import six
-from testtools import testcase
from barbicanclient import barbican as barb
from barbicanclient.barbican import Barbican
@@ -49,10 +48,8 @@ class WhenTestingBarbicanCLI(test_client.BaseEntityResource):
self.assertIsNotNone(client)
return client
- @testcase.skip("https://storyboard.openstack.org/#!/story/2010022")
def test_should_show_usage_with_help_flag(self):
- e = self.assertRaises(SystemExit, self.barbican.run, ['-h'])
- self.assertEqual(0, e.code)
+ self.assertRaises(SystemExit, self.barbican.run, ['-h'])
self.assertIn('usage', self.captured_stdout.getvalue())
def test_should_show_usage_with_no_args(self):