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.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for chompt-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2121c9fbd4040ab193ae1cbff62337a7209bcbdab725c3e7637ec5a932b3b5c8 |
|
MD5 | 61ec8f02db7833bd9f2545e4f6ed69a1 |
|
BLAKE2b-256 | e6150cb7520e2b7c82d1ad971bb00728345fca73022a159f6e3191918ef08a82 |