Flexmock 0.8.0 publishes mock tools for rails unit tests

Source: Internet
Author: User
Keywords Rails unit tests Flexmock mock tools
Tags aliyun api calls clone html http integration it is

Flexmock is a more popular mock tool for http://www.aliyun.com/zixun/aggregation/13726.html ">rails unit tests. A Python mock/stub/spy library. Its API 17885.html "> Inspired by the same name as the Ruby Library. However, it is not a Python flexmock, and the goal is not to clone Ruby versions. Instead, the focus is on providing a Python program for testing and, to the extent possible, full support for unobtrusive creation of fake objects. Flexmock's design focuses on simplicity and intuition. This means that the API is very compact and has some handy shorthand methods that provide designers with simplicity and readability. The structure of the Flexmock declaration looks more than the API calls English sentences, and can be concatenated in any order to implement the expression in a single line of code.

Flexmock 0.8.0 has a larger variety of consolidation support, so there are no more stack checks or replacements. Increased doctest integration. When ordering the authentication method, a default stub is fixed. The call to With_args () is fixed with no parameters and exactly matches any arguments. Performance increased by 20%. A partial knot now returns the object itself, unless the object already has some flexmock methods. Successive Flexmock calls now return the same mock object.

-Big changes in runner integration support (no more stack examination or sketchy teardown replacement)-Doctest integration- Fixing ordering verification When the method super-delegates a default stub-fixing calling With_args () without arguments to match exactly No arguments (jerico-dev!) -From configured Improvement-make throaty to return object itself the when partial mocking instances otherwise the object already super-delegates Some of the methods-ensure consecutive calls return Mahouve mock object

Download Address: http://pypi.python.org/pypi/flexmock/0.8.0

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.