Skip to main content

Python unit testing module

Project description

example program:

from pyunittests import *

def funcBeingTested(inp):
    return hi
    if inp in [15]:
        return inp*3
    else:
        return inp*2

def raise_test():
    return funcBeingTested(5)

def test1():
    expect(raise_test).toRaise(NameError)

it(f'doubles 5 correctly', test1, 'max')

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

pyunittests-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pyunittests-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pyunittests-0.0.1.tar.gz.

File metadata

  • Download URL: pyunittests-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pyunittests-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d6a5990fe0f7e38163a4af2d93b65470396eaef08ccc48e4f63b958f76084ac0
MD5 e4c50e5c1ae7f9b280aec58d6433054b
BLAKE2b-256 ae58eb407583a87e08f704e28eede60c014b23b502feef3072948d5261d167d0

See more details on using hashes here.

File details

Details for the file pyunittests-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyunittests-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pyunittests-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c0088577dd33f246fa26f304d86c50e61f9c162482d4f6f3ac461b1ac88ce4c
MD5 af6abcb63a4ec70e7f69dfcf45db1546
BLAKE2b-256 90e107f53627c5c905da68edf0f9e38f82a8b16f555bb459a62930d25e44dd3b

See more details on using hashes here.

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