Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for chompt, version 1.1.8
Filename, size File type Python version Upload date Hashes
Filename, size chompt-1.1.8-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size chompt-1.1.8.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page