You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
398 B
17 lines
398 B
# -*- coding: utf-8 -*-
|
|
"""Click commands."""
|
|
import click
|
|
import os
|
|
from flask.cli import with_appcontext
|
|
|
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
|
PROJECT_ROOT = os.path.join(HERE, os.pardir)
|
|
TEST_PATH = os.path.join(PROJECT_ROOT, 'tests')
|
|
|
|
|
|
@click.command('test')
|
|
@with_appcontext
|
|
def test_command():
|
|
"""Run the tests."""
|
|
import pytest
|
|
pytest.main([TEST_PATH, '--verbose'])
|
|
|