[test] Add an "actionverb" attribute to test commands
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 22 Jul 2019 11:32:12 +0200
changeset 12695 38dfd90c335a
parent 12694 58f132392cba
child 12696 eb83daa69495
[test] Add an "actionverb" attribute to test commands
cubicweb/test/unittest_cwctl.py
--- a/cubicweb/test/unittest_cwctl.py	Mon Jul 22 11:25:17 2019 +0200
+++ b/cubicweb/test/unittest_cwctl.py	Mon Jul 22 11:32:12 2019 +0200
@@ -85,6 +85,7 @@
 class _TestCommand(InstanceCommand):
     "I need some doc"
     name = "test"
+    actionverb = 'failtested'
 
     def test_instance(self, appid):
         pass
@@ -93,6 +94,7 @@
 class _TestFailCommand(InstanceCommand):
     "I need some doc"
     name = "test_fail"
+    actionverb = 'tested'
 
     def test_fail_instance(self, appid):
         raise Exception()