Download List

Projeto Descrição

Flexmock is a mock/stub/spy library for Python. 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. Flexmock’s design focuses on simplicity and intuitiveness. 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.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2012-01-06 07:16
0.9.2

Esta versão corrige builtins zombaria, redefinindo as expectativas quando exceções são geradas durante a instalação do flexmock. Ele corrige zombaria métodos particulares em classes com sublinhados à esquerda no nome. Limita os danos de "de importação de flexmock *", restringindo-a importação apenas a função de flexmock(). Corrige um sutil erro, garantindo o status de sucesso global é limpa depois de cada teste.
This release fixes mocking builtins by resetting expectations when exceptions are raised during flexmock setup. It fixes mocking private methods on classes with leading underscores in the name. It limits the damage of "from flexmock import *" by restricting it to only import the flexmock() function. It fixes a subtle error by ensuring global success status is cleaned up after each test.

2011-11-28 07:03
0.9.1

Esta versão adiciona suporte para um número de corredores de teste populares, incluindo unittest2, django/trial, torcida, zope.testrunner, subunidade e testtools.
Tags: 0.9.1
This release adds support for a number of popular test runners, including unittest2, django/trial, twisted, zope.testrunner, subunit, and testtools.

2011-11-05 06:58
0.9.0

Esta versão adiciona o suporte de máquina de estado usando when(). Ele faz expectativas falhar assim que for excedido o número de chamadas esperadas. flexmock_teardown já não retorna uma função. Esta versão corrige should_call(), permitindo que ele em classe e métodos estáticos ao mesmo tempo, não permitindo em simulações de classe. Ele corrige Unicode argumento questões sobre movimentação. Ele corrige problemas com métodos @ Propriedade apresente comportamento estranho no depurador. Corrige pytest integração e subdivisão de instância. Corrige Manipulação método particular.
This release adds state machine support using when(). It makes expectations fail as soon as the number of expected calls is exceeded. flexmock_teardown no longer returns a function. This release fixes should_call(), allowing it on class and static methods while disallowing on class mocks. It fixes Unicode argument handling issues. It fixes issues with @property methods misbehaving in the debugger. It fixes pytest integration and instance teardown. It fixes private method handling.

2011-06-30 19:09
0.8.1

integração pytest doctest e foram fixados para sempre chamar flexmock_teardown. flexmock_teardown agora retorna uma função como antes, então ele ainda pode ser usado como um decorador.
pytest and doctest integration were fixed to always call flexmock_teardown. flexmock_teardown now returns a function as before so it can still be used as a decorator.

2011-06-28 23:08
0.8.0

Grandes mudanças foram feitas em apoiar a integração corredor, por isso não há exame mais pilha ou substituição teardown esboçado. Doctest integração foi adicionado. Verificação de ordenação, quando o método tem um esboço padrão foi fixado. Chamando with_args () sem argumentos foi fixado para corresponder exactamente sem argumentos. O desempenho foi melhorado em 20%. Zomba parcial agora devolver o objeto em si, a menos que o objeto já tem alguns dos métodos flexmock. Flexmock consecutivos chama agora retornar o mesmo objeto mock.
Big changes were made in runner integration support, so there is no more stack examination or sketchy teardown replacement. Doctest integration was added. Ordering verification when the method has a default stub was fixed. Calling with_args() without arguments was fixed to match exactly no arguments. Performance was improved by 20%. Partial mocks now return the object itself unless the object already has some of the flexmock methods. Consecutive flexmock calls now return the same mock object.

Project Resources