diff test/test_actions.py @ 6638:e1588ae185dc issue2550923_computed_property

merge from default branch. Fix travis.ci so CI builds don't error out
author John Rouillard <rouilj@ieee.org>
date Thu, 21 Apr 2022 16:54:17 -0400
parents 8269e89530e5
children 9ca5cbffa0c4
line wrap: on
line diff
--- a/test/test_actions.py	Fri Oct 08 00:37:16 2021 -0400
+++ b/test/test_actions.py	Thu Apr 21 16:54:17 2022 -0400
@@ -82,6 +82,16 @@
         self.assertRaisesMessage(ValueError, action.handle,
             'No type specified')
 
+    def testShowActionBadNumber(self):
+        action = ShowAction(self.client)
+        self.assertRaises(ValueError, action.handle)
+        self.form.value.append(MiniFieldStorage('@number', 'A'))
+        self.form.value.append(MiniFieldStorage('@type', 'issue'))
+        with self.assertRaises(SeriousError) as ctx:
+            action.handle()
+        self.assertEqual('"A" is not an ID (issue ID required)',
+                         ctx.exception.args[0])
+
 class RetireActionTestCase(ActionTestCase):
     def testRetireAction(self):
         self.client.db.security.hasPermission = true

Roundup Issue Tracker: http://roundup-tracker.org/