Welcome to pytest-flask’s documentation! — pytest-flask 1.3.1.dev43+g561a2bb documentation (original) (raw)

Pytest-flask is a plugin for pytest that provides a set of useful tools to test Flask applications and extensions.

Quickstart

Install plugin via pip:

Define your application fixture in conftest.py:

from myapp import create_app

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

Now you can use the app fixture in your test suite. You can run your tests with:

User’s Guide

This part of the documentation will show you how to get started in using pytest-flask with your application.