Introduction to Unit Testing with Pytest - pathfinder-analytics-uk/dab_project GitHub Wiki
Links and Resources
Project Code
tests/test_demo.py
def test_example():
assert 1==1
Commands
Activating the Virtual Environment
The below commands activates a virtual environment.
MacOS/Linux
source .venv_pyspark/bin/activate
Windows
.venv_pyspark\Scripts\activate
Installing Pytest (activate the venv_pyspark environment)
pip install pytest
Running tests
pytest