Commands for Testing: Flask Application
Learn how to automate Flask application testing.
We'll cover the following
Run pytest
When we try to run pytest, we encounter a different problem. Namely, it’s a Python script and must run in the right virtual environment, regardless of whether the Shell was in that virtual environment or not. The pipenv run
command is intelligent enough to handle this.
pre-commit
script
Get hands-on with 1200+ tech skills courses.