Use flake8 instead of pep8.
This commit is contained in:
parent
dfe07b72dd
commit
5d51e3873d
@ -71,7 +71,7 @@ class TestAccount(test_base.TestCase):
|
||||
ret_orig_storage_id = sorted(
|
||||
x[0][x[0].find('AUTH_') + 5:] for x in ret)
|
||||
self.assertEquals(tenant_list_ids, ret_orig_storage_id)
|
||||
[self.assertTrue(x[1].startswith(STORAGE_DEST)) for x in ret]
|
||||
[self.assertTrue(y[1].startswith(STORAGE_DEST)) for y in ret]
|
||||
|
||||
def test_sync_account(self):
|
||||
ret = []
|
||||
|
8
tox.ini
8
tox.ini
@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
envlist = py27,pep8
|
||||
envlist = py27,flake8
|
||||
|
||||
[testenv]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
@ -11,9 +11,9 @@ deps = -r{toxinidir}/tools/pip-requires
|
||||
-r{toxinidir}/tools/test-requires
|
||||
commands = python setup.py testr --testr-args="{posargs}"
|
||||
|
||||
[testenv:pep8]
|
||||
deps = pep8
|
||||
commands = pep8 --repeat --show-source swsync bin setup.py tests
|
||||
[testenv:flake8]
|
||||
deps = flake8
|
||||
commands = flake8 --show-source swsync bin setup.py tests
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user