also pep8-test the test script; restore pep8 for update.py
This commit is contained in:
parent
da02f8eeb1
commit
30c9d38842
@ -4,4 +4,5 @@ install:
|
|||||||
- sudo pip install pytest pep8
|
- sudo pip install pytest pep8
|
||||||
script:
|
script:
|
||||||
- pep8 --ignore=E501 update.py
|
- pep8 --ignore=E501 update.py
|
||||||
|
- pep8 --ignore=E501 test/test.py
|
||||||
- py.test -vv test/test.py
|
- py.test -vv test/test.py
|
||||||
|
@ -3,7 +3,6 @@ import subprocess
|
|||||||
|
|
||||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
def exe(command):
|
def exe(command):
|
||||||
stdout, stderr = subprocess.Popen(command.split(),
|
stdout, stderr = subprocess.Popen(command.split(),
|
||||||
@ -11,7 +10,6 @@ def exe(command):
|
|||||||
stderr=subprocess.PIPE).communicate()
|
stderr=subprocess.PIPE).communicate()
|
||||||
return stdout, stderr
|
return stdout, stderr
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
def test_cxx():
|
def test_cxx():
|
||||||
os.chdir(os.path.join(HERE, 'cxx', 'cmake'))
|
os.chdir(os.path.join(HERE, 'cxx', 'cmake'))
|
||||||
@ -25,7 +23,6 @@ def test_cxx():
|
|||||||
stdout, stderr = exe('./bin/example')
|
stdout, stderr = exe('./bin/example')
|
||||||
assert 'Hello World!' in stdout
|
assert 'Hello World!' in stdout
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
def test_fc():
|
def test_fc():
|
||||||
os.chdir(os.path.join(HERE, 'fc', 'cmake'))
|
os.chdir(os.path.join(HERE, 'fc', 'cmake'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user