Pytest Tutorial: An Introduction To Unit Testing
How to use Pytest fixtures and mock for unit testing
Published in
7 min readApr 18, 2023
Background
Imagine you are a data scientist who has just developed some awesome new model that is going to bring the company a lot of money. The next step is to send it to production. You spend some days making the code PEP compliant, applying linting, etc…