A lightweight basic testing framework.
Project description
box-test
Basic testing framework that prints beautiful errors.
from boxtest import Tester
async def myAsyncTest(text):
print('foo')
print(text)
def mySyncTest(framework):
print('Whats the best testing framework?')
if framework.lower() == 'boxtest':
print('boxtest is correct!')
else:
raise Exception('Wrong!')
if __name__ == '__main__':
tester = Tester()
tester.addAsyncTest(myAsyncTest('bar'))
tester.addSyncTest(framework, 'unittest')
tester.addSyncTest(framework, 'boxtest')
tester.run()
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
boxtest-0.3.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boxtest-0.3.1.tar.gz.
File metadata
- Download URL: boxtest-0.3.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4833f95ff140c233d16e78deba0035f7052617cb3d4f78270f987cee9661bca
|
|
| MD5 |
34f67bf6cb396d0706a40e102577a72d
|
|
| BLAKE2b-256 |
e5b368782561862458e081b05c1e3d750714224bc69ae572ac98be9559057dd0
|
File details
Details for the file boxtest-0.3.1-py3-none-any.whl.
File metadata
- Download URL: boxtest-0.3.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a244ebb9b2122d0a41ae626d2004ade35241193c9681278bcea35de671ff1d2
|
|
| MD5 |
34732a2e1c4ef32e69c7613e2b1aefce
|
|
| BLAKE2b-256 |
fdb81f3f489d2b60675f7c2575eb05932c89ec8dcad6f127abbb9a8b13b9ada9
|