CHOMPT
Chainable Object Methods for Python Testing is a package for constructing tests by chaining HTTP requests, and storing/referencing the results.
Example Usage:
from chompt import Chompt
class ExampleClient(object):
def __init__(self):
self.prefix = 'correct'
def fetch(self):
return self.prefix + ' result'
class ExampleTest(Chompt):
def __init__(self):
super(ExampleTest, self).__init__()
self.incorporate(ExampleClient(), 'example_client')
def test_example():
test = ExampleTest().example_client.fetch().equals('correct result')
return test
if __name__ == "__main__":
print("About to run test...")
test_object = test_example()
print("The test passed! the test_object looks like:")
test_object.debug()
Metadata
Release files for chompt 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chompt-1.1.8.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chompt-1.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / chompt-1.1.8.tar.gz
| Download URL | chompt-1.1.8.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
613ec3a7995ca6d29b3643a938531c2c934b01a7e6d41ae47b147741ce7634f0
|
|
BLAKE2b-256 checksum How to use checksums |
9f71f5b7e2e8b4ff67afe28182b3f400ba340c109c6719e09341e34d25f0fc42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / chompt-1.1.8-py3-none-any.whl
| Download URL | chompt-1.1.8-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d52331a55c7da45a2d1ba2b0663a506859736bd0172b0bf7388e5003dd007a71
|
|
BLAKE2b-256 checksum How to use checksums |
6955535732362a5ed71cf67dc131cf26806c1990ea92c0327b2aaeaa9175a15a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |