initial creation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import click
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.argument('path', default=os.path.join('snakeeyes', 'tests'))
|
||||
def cli(path):
|
||||
"""
|
||||
Run tests with Pytest.
|
||||
|
||||
:param path: Test path
|
||||
:return: Subprocess call result
|
||||
"""
|
||||
cmd = 'py.test {0}'.format(path)
|
||||
return subprocess.call(cmd, shell=True)
|
||||
Reference in New Issue
Block a user