Flexmock 0.9.4 publishes the Python test library

Source: Internet
Author: User
Keywords Flexmock python Test Library simulation test tool
Tags aliyun api clone html http it is name objects

Flexmock is a Python mock/stub/spy library used to http://www.aliyun.com/zixun/aggregation/13726.html the mock tools for >rails unit tests.

Its API 17885.html "> Inspired by the same name of Ruby Library, however, it is not a Python flexmock, the goal is to clone Ruby version. Instead, it focuses on providing a Python program for testing and, to the extent possible, full support for unobtrusive creation of fake objects. The features of Flexmock are simple and intuitive, the APIs are very compact and some handy shorthand methods are available to designers.

Flexmock 0.9.4 This version adds getter properties and non-invocation properties that support stub return values. Added support for custom matching objects to With_args (), strict function signature checks, support for chained attributes and ITER support mock objects. Should_call () is fixed, And_return () is returned by default, no fixed, use feature = Return_value style creation, will now use Replace_with () instead of should_receive (redemption value). Flexmock PyPy and Jython test work in this release.

Software Information: http://has207.github.com/flexmock/

Download Address: http://pypi.python.org/packages/source/f/flexmock/flexmock-0.9.4.tar.gz#md5=69c3186ff2d313794800b07cad34a209

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.