summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-12-15 08:03:09 -0800
committerOle Trøan <otroan@employees.org>2018-12-21 07:50:30 +0000
commit087c811b63aa6b0575149749e188bb37e7fb0513 (patch)
tree2858355245d43d44fd77698458440132ca55e92b /test
parent919efad2671993d4c6d5a0dba8eeb99d5c60edf1 (diff)
Python Tests: Make VppTestCase unit testable.
* This allows for VppTestCase to instantiated with an empty constructor. Change-Id: Ib71d3bfb4529e113f9b73c39de9b95f12ee9cfb4 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index 5eeb5187041..2505057472e 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1004,6 +1004,11 @@ class VppTestCase(unittest.TestCase):
return rx
+ def runTest(self):
+ """ unittest calls runTest when TestCase is instantiated without a
+ test case. Use case: Writing unittests against VppTestCase"""
+ pass
+
def get_testcase_doc_name(test):
return getdoc(test.__class__).splitlines()[0]