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

Uploaded Source

Built Distribution

pyunittests-0.0.1-py3-none-any.whl (3.1 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