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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pyunittests-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c0088577dd33f246fa26f304d86c50e61f9c162482d4f6f3ac461b1ac88ce4c |
|
MD5 | af6abcb63a4ec70e7f69dfcf45db1546 |
|
BLAKE2b-256 | 90e107f53627c5c905da68edf0f9e38f82a8b16f555bb459a62930d25e44dd3b |