Plain is headed towards 1.0! Subscribe for development updates →

Testing - pytest

Write and run tests with pytest.

Django includes its own test runner and unittest classes. But a lot of people (myself included) prefer pytest.

In Plain I've removed the Django test runner and a lot of the implications that come with it. There are a few utilities that remain to make testing easier, and plain test is a wrapper around pytest.

Usage

To run your tests with pytest, use the plain test command:

plain test

This will execute all your tests using pytest.

1from .cli import cli
2
3__all__ = ["cli"]