|
|
@ -28,8 +28,9 @@ def _make_context(): |
|
|
|
@manager.command |
|
|
|
@manager.command |
|
|
|
def test(): |
|
|
|
def test(): |
|
|
|
"""Run the tests.""" |
|
|
|
"""Run the tests.""" |
|
|
|
status = subprocess.call(TEST_CMD, shell=True) |
|
|
|
import pytest |
|
|
|
sys.exit(status) |
|
|
|
exit_code = pytest.main(['tests', '--verbose']) |
|
|
|
|
|
|
|
return exit_code |
|
|
|
|
|
|
|
|
|
|
|
manager.add_command('server', Server()) |
|
|
|
manager.add_command('server', Server()) |
|
|
|
manager.add_command('shell', Shell(make_context=_make_context)) |
|
|
|
manager.add_command('shell', Shell(make_context=_make_context)) |
|
|
|