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.