Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

boxtest-0.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file boxtest-0.3-py3-none-any.whl.

File metadata

  • Download URL: boxtest-0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for boxtest-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c8c339dcb79d886c3f8556b298b66af5fb3f3e22a46e2da3796d47d1d46688
MD5 59b432998f8f30653779c404152222a5
BLAKE2b-256 a1568c8b4eb6804bcbc03678e253b58c9119385396c17fb1b27558487ef9c38a

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