Skip to content

Commit

Permalink
Edited README via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
has207 committed Feb 23, 2011
1 parent 3bb296b commit 2499d58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README
@@ -1,6 +1,12 @@
FlexMock is a mock/stub/spy library for Python.

It takes inspiration from a Ruby library of the same name, and as a result introduces much simpler syntax than other Python mocking libraries that are largely ported from Java. However, the aim of Python FlexMock is not to clone the Ruby version but to be able to provide full support for mocking Python-specific features, and make the creation of fake objects as unobtrusive as possible.
Its API is inspired by a Ruby library of the same name. However, it is not a goal of Python Flexmock to be a clone of the Ruby version. Instead, the focus is on providing full support for testing Python programs and making the creation of fake objects as unobtrusive as possible.

As a result, Python Flexmock removes a number of redandancies in the Ruby Flexmock API, alters some defaults, and introduces a number of Python-only features.

Flexmock’s design focuses on simplicity and intuitivenes. This means that the API is as lean as possible, though a few convenient short-hand methods are provided to aid brevity and readability.

Flexmock declarations are structured to read more like English sentences than API calls, and it is possible to chain them together in any order to achieve high degree of expressiveness in a single line of code.

More details, including full API and user documentation, available here:

Expand Down

0 comments on commit 2499d58

Please sign in to comment.