Skip to main content

A library for python for easy testing.

Project description

quicktests

A library for python for easy testing

Example

from quicktests import HRTest


class Test(HRTest):
    def test_one_equals_one(self):
        assert 1 == 1, "One does not equal one"

    def test_one_equals_one_str(self):
        assert "One" == "One", "\"One\" does not equal \"One\""


if __name__ == '__main__':
    t = Test()
    result = t()
    print(result)

The code above provides the following information:

Running tests took 5.14984130859375e-05 seconds.
Ran 2 tests.
Found 0 errors:
No error was found. Add more test to make sure your code works.

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

quicktests-0.0.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

quicktests-0.0.2-py3-none-any.whl (15.3 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