This is a template for testing python code in a python environment.
There is a makefile which automaticity creates a virtual environment and installs the requirements.
First you need to set up a virtual environment. This can be done by running the following command:
make setup
or if you are using windows:
python -m venv .
You will also need to install the requirements. This can be done by running the following command:
# Install requirements
pip install -r scripts\requirements\requirements.txt
# Install top ten requirements
pip install -r scripts\requirements\top_ten.txt
This is where the main code goes. This is the code that you want to test.
Put in here python modules and functions that you want to test.
In this folder you can put in tests for your modules and functions. To run the tests, run the following command from the root of the project:
pytest