cmdtest-0.1.1
توضیحات
Simple testing for command line programs.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cmdtest-0.1.1 |
| نام | cmdtest |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hector Dearman |
| ایمیل نویسنده | hector.dearman@gmail.com |
| آدرس صفحه اصلی | https://github.com/chromy/cmdtest |
| آدرس اینترنتی | https://pypi.org/project/cmdtest/ |
| مجوز | MIT license |
cmdtest
=======
cmdtest is a simple way to test command line programs.
::
from cmdtest import Program, File
cat = Program('cat')
@cat.test
def cat_should_echo_single_file():
assert cat(File('hello')).out == 'hello'
@cat.test
def cat_should_combine_files():
assert cat(File('hello'), File('world')).out == 'helloworld'
if __name__ == '__main__':
cat.run()
Installation
------------
Available from PyPI with either *pip* or *easy_install*:
.. sourcecode:: console
$ pip install cmdtest
$ easy_install cmdtest
This will also pull in the Attest dependencies.
نحوه نصب
نصب پکیج whl cmdtest-0.1.1:
pip install cmdtest-0.1.1.whl
نصب پکیج tar.gz cmdtest-0.1.1:
pip install cmdtest-0.1.1.tar.gz