API: use of py.test as test runner

This commit is contained in:
Sam
2018-04-09 14:24:46 +02:00
parent a23643b24d
commit 2c5ad23f0c
3 changed files with 3 additions and 9 deletions

View File

@ -42,16 +42,10 @@ def run_test(test_path='mpwo_api/tests'):
@app.cli.command()
def test(test_path='mpwo_api/tests'):
def test():
"""Runs the tests without code coverage."""
run_test()
@app.cli.command()
def test_local():
"""Runs the tests without code coverage in local machine w/ make."""
run_test('mpwo_api/mpwo_api/tests')
if __name__ == '__main__':
app.run()