chompt-1.1.8
توضیحات
Chainable Object Methods for Python Testing
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chompt-1.1.8 |
| نام | chompt |
| نسخه کتابخانه | 1.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Terrance Ford |
| ایمیل نویسنده | ttf0809@gmail.com |
| آدرس صفحه اصلی | https://github.com/tbonelaforge/chompt |
| آدرس اینترنتی | https://pypi.org/project/chompt/ |
| مجوز | MIT |
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()
نحوه نصب
نصب پکیج whl chompt-1.1.8:
pip install chompt-1.1.8.whl
نصب پکیج tar.gz chompt-1.1.8:
pip install chompt-1.1.8.tar.gz