Pytest Installation

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

pytest is installed in a virtual environment and then used from that virtual environment.

For your project, configure direnv to set PATH to give priority to your virtual environment bin directory. In .envrc:

PATH_add "./src/main/python/venv/bin"


This procedure worked for a virtual environment located with the project. Configured direnv to set PATH to give priority to the local virtual environment pip.

pip install -U pytest

pytest was installed in the local virtual environment.