Chainable Object Methods for Python Testing
Project description
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()
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
chompt-1.1.8.tar.gz
(4.8 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 chompt-1.1.8.tar.gz.
File metadata
- Download URL: chompt-1.1.8.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613ec3a7995ca6d29b3643a938531c2c934b01a7e6d41ae47b147741ce7634f0
|
|
| MD5 |
9dc223f97f06e4224dd08b2dbc73f842
|
|
| BLAKE2b-256 |
9f71f5b7e2e8b4ff67afe28182b3f400ba340c109c6719e09341e34d25f0fc42
|
File details
Details for the file chompt-1.1.8-py3-none-any.whl.
File metadata
- Download URL: chompt-1.1.8-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d52331a55c7da45a2d1ba2b0663a506859736bd0172b0bf7388e5003dd007a71
|
|
| MD5 |
843af34635bf63c85e0befde4256456b
|
|
| BLAKE2b-256 |
6955535732362a5ed71cf67dc131cf26806c1990ea92c0327b2aaeaa9175a15a
|