/unii-test-python

Covers unit testing from pytest to travisCi to codecove and also, using test classes and mocking

Primary LanguageJupyter Notebook

Build Status codecov

This repository holds the code for for a practical course I undertook in Datacamp titled Unit Testing for Data Science in Python by Dibya Chakravorty.

Please make sure that you have installed the package univariate_linear_regression in this repo using pip before running pytest. Otherwise, you may get ImportErrors.

To install it, first clone the repo.

https://github.com/IfeanyiOsuji/unit-test-python.git

Then install the package locally using pip, making sure that you are using Python version >=3.6.

pip install -e univariate_linear_regression

Once the installation finishes, you can run all the tests by doing

cd univariate_linear_regression
pytest --mpl