wonderbeyond
9/30/2017 - 7:42 AM

[Python, Flask] run test cases together with doctests

[pytest, Flask] Flask+pytest example

py.test --doctest-modules  --ignore=fabfile.py "$@"
import pytest
from amidala.application import app


@pytest.fixture(autouse=True)
def app_context():
    with app.app_context():
        yield