From 087c811b63aa6b0575149749e188bb37e7fb0513 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Sat, 15 Dec 2018 08:03:09 -0800 Subject: [PATCH] Python Tests: Make VppTestCase unit testable. * This allows for VppTestCase to instantiated with an empty constructor. Change-Id: Ib71d3bfb4529e113f9b73c39de9b95f12ee9cfb4 Signed-off-by: Paul Vinciguerra --- test/framework.py | 5 +++++ 1 file changed, 5 insertions(+) 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] -- 2.16.6