Pytest Quick Tips

Couple of things I picked up on.

A) If you don’t run tests in the root python directory then you will get a app.config[“SECRET_KEY”] error

B) Use the -v Flag to display nicer results.

Below is the user management tests with and without -v flag.

Without you have the dots which can be hard to trace to the right tests.

Using -v tells you exactly which tests are failing helping you to fix the right bits of the application


Hi @ahaw021,

This is really nice information. :slight_smile: Thanks for sharing this.