From: Paul Vinciguerra Date: Sat, 15 Dec 2018 16:03:09 +0000 (-0800) Subject: Python Tests: Make VppTestCase unit testable. X-Git-Tag: v19.04-rc0~102 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=087c811b63aa6b0575149749e188bb37e7fb0513 Python Tests: Make VppTestCase unit testable. * This allows for VppTestCase to instantiated with an empty constructor. Change-Id: Ib71d3bfb4529e113f9b73c39de9b95f12ee9cfb4 Signed-off-by: Paul Vinciguerra --- 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]