Code used for my talk about 'How to not pull your hair out while providing data to the business, unit testing for data pipelines'.
This repo contains three phases of the talk; the initial code, refactoring no. 1 and refactoring no. 2.
- Initial code:
orginal.py
. - First refactoring:
refactor_1.py
andtests/test_1.py
. - Second refactoring
refactor_2.py
andtests/test_2.py
.
- Have Poetry installed.
- Clone the repo.
- Run
poetry install
- Run
poetry run pytest
to run the test suite (or activate the virtual environment that Poetry created and then just runpytest
).