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.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
quicktests-0.0.3-py3-none-any.whl
(15.3 kB
view hashes)
Close
Hashes for quicktests-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efffb3c81bbeeab02ee7c63e97362588f5a3aa5f315b95b0f755a302ca2a6b9a |
|
MD5 | 6e9c8530c1dc781304a5b852f959f0a5 |
|
BLAKE2b-256 | e7b1b6317ada981e9e2dddf4aadd54d52ff2f1297a3aa9f2d590677fe85a2f8e |