mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
More pep8 checks and fixes
This commit is contained in:
parent
5c4d221c34
commit
67ee33ff8a
@ -13,7 +13,7 @@ class TestCsApp(unittest.TestCase):
|
|||||||
def test_init(self):
|
def test_init(self):
|
||||||
csconfig = CsConfig()
|
csconfig = CsConfig()
|
||||||
csconfig.set_cl()
|
csconfig.set_cl()
|
||||||
csip = CsIP("eth0", csconfig);
|
csip = CsIP("eth0", csconfig)
|
||||||
csapp = CsApp(csip)
|
csapp = CsApp(csip)
|
||||||
self.assertTrue(csapp is not None)
|
self.assertTrue(csapp is not None)
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ class TestCsRoute(unittest.TestCase):
|
|||||||
merge.DataBag.DPATH = "."
|
merge.DataBag.DPATH = "."
|
||||||
|
|
||||||
def test_init(self):
|
def test_init(self):
|
||||||
csroute = CsRoute(["one","two","three","four"])
|
csroute = CsRoute(["one", "two", "three", "four"])
|
||||||
self.assertTrue(csroute is not None)
|
self.assertTrue(csroute is not None)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
@ -5,4 +5,7 @@
|
|||||||
export PYTHONPATH="../../patches/debian/config/opt/cloud/bin/"
|
export PYTHONPATH="../../patches/debian/config/opt/cloud/bin/"
|
||||||
export PYTHONDONTWRITEBYTECODE=False
|
export PYTHONDONTWRITEBYTECODE=False
|
||||||
|
|
||||||
|
pep8 --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py `find ../../patches -name \*.py`
|
||||||
|
pep8 --max-line-length=179 *py
|
||||||
|
|
||||||
nosetests .
|
nosetests .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user