Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: replace pycodestyle with black
[vpp.git]
/
test
/
test_vppinfra.py
diff --git
a/test/test_vppinfra.py
b/test/test_vppinfra.py
index
36cd55b
..
3a8f8e9
100644
(file)
--- a/
test/test_vppinfra.py
+++ b/
test/test_vppinfra.py
@@
-6,7
+6,8
@@
from framework import VppTestCase, VppTestRunner
class TestVppinfra(VppTestCase):
class TestVppinfra(VppTestCase):
- """ Vppinfra Unit Test Cases """
+ """Vppinfra Unit Test Cases"""
+
vpp_worker_count = 1
@classmethod
vpp_worker_count = 1
@classmethod
@@
-24,16
+25,17
@@
class TestVppinfra(VppTestCase):
super(TestVppinfra, self).tearDown()
def test_bitmap_unittest(self):
super(TestVppinfra, self).tearDown()
def test_bitmap_unittest(self):
- """
Bitmap Code Coverage Test
"""
+ """
Bitmap Code Coverage Test
"""
cmds = ["test bitmap"]
for cmd in cmds:
r = self.vapi.cli_return_response(cmd)
if r.retval != 0:
cmds = ["test bitmap"]
for cmd in cmds:
r = self.vapi.cli_return_response(cmd)
if r.retval != 0:
- if hasattr(r,
'reply'
):
+ if hasattr(r,
"reply"
):
self.logger.info(cmd + " FAIL reply " + r.reply)
else:
self.logger.info(cmd + " FAIL retval " + str(r.retval))
self.logger.info(cmd + " FAIL reply " + r.reply)
else:
self.logger.info(cmd + " FAIL retval " + str(r.retval))
-if __name__ == '__main__':
+
+if __name__ == "__main__":
unittest.main(testRunner=VppTestRunner)
unittest.main(testRunner=VppTestRunner)