nicoddemus / pytest-flask

A set of pytest fixtures to test Flask applications

Home Page:http://pytest-flask.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytest-flask

PyPi version PyPi downloads Documentation status

An extension of pytest test runner which provides a set of useful tools to simplify testing and development of the Flask extensions and applications.

To view a more detailed list of extension features and examples go to the PyPI overview page or package documentation.

How to start?

Define your application fixture in conftest.py:

from myapp import create_app

@pytest.fixture
def app():
    app = create_app()
    return app

Install the extension with dependencies and go:

$ pip install pytest-flask
$ py.test

Contributing

Don’t hesitate to create a GitHub issue for any bug or suggestion.

About

A set of pytest fixtures to test Flask applications

http://pytest-flask.readthedocs.org/en/latest/

License:MIT License


Languages

Language:Python 98.7%Language:Makefile 1.3%