Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
919efad
)
Python Tests: Make VppTestCase unit testable.
99/16499/2
author
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Sat, 15 Dec 2018 16:03:09 +0000
(08:03 -0800)
committer
Ole Trøan
<otroan@employees.org>
Fri, 21 Dec 2018 07:50:30 +0000
(07:50 +0000)
* This allows for VppTestCase to instantiated with an empty constructor.
Change-Id: Ib71d3bfb4529e113f9b73c39de9b95f12ee9cfb4
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/framework.py
patch
|
blob
|
history
diff --git
a/test/framework.py
b/test/framework.py
index
5eeb518
..
2505057
100644
(file)
--- 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]