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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file utestcell-0.0.15.tar.gz.

File metadata

  • Download URL: utestcell-0.0.15.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for utestcell-0.0.15.tar.gz
Algorithm Hash digest
SHA256 6d7648f03278d3aa728193d946c913a584b530b67b5b36e8a048a93012dc32fa
MD5 a770e6856d7242507da7750effb70341
BLAKE2b-256 b88e5db424a439669ced91d69b4275e2d1c00030f709ebc04e2dc6acb329777d

See more details on using hashes here.

File details

Details for the file utestcell-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: utestcell-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for utestcell-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6a1817cbb9d5d8189b666d24c40a85f5ed7f7a2a5b5102b6c02a7e5cf9db6c63
MD5 fddfdc137f0be0174bc761da0658eea5
BLAKE2b-256 7c048d54ce353b6a953205eda0c5e2b7a1b6535c64d611ee4ab4572f28e6fc2a

See more details on using hashes here.

Supported by

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