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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for chompt-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2102095cd79216dce5e3cd55a300620b8f1dbbb3a7bea4677fd380f15c122366 |
|
MD5 | 662a63d7d99b7f2ba74472495e02548b |
|
BLAKE2b-256 | b0dbf2fefde07461822ea23322e75ea3659d10c8f719d0fbd0c0f2439f3f5b06 |