Skip to main content

Python magic to simplify unit testing in Colab and Jupyter

Project description

UTestCell

utestcell is an IPython magic function that simplifies unit testing with Colab/Jupyter notebooks.

To activate utestcell in a Colab notebook:

!pip install utestcell
%load_ext utestcell

Then add at the top of the cell

%%utestcell

To use a test file stored on Github:

#in cell #1
url = 'url of test.py file'
#in cell #2
%%utestcell -u:$url

See a detailed explanation on my blog and on the Github repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utestcell-0.0.15.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

utestcell-0.0.15-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page