icon

A library for testing in Python

mock_python3 - 4.0.3-1 - any

Mock allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

Mock provides a core 'MagicMock' class removing the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way.

The mock module also provides utility functions / objects to assist with testing, particularly monkey patching.

Nome
mock_python3
Repositório
HaikuPorts
Origem do Repositório
haikuports_x86_gcc2
Versão
4.0.3-1
Tamanho da descarga
60.6 KB (62074 B)
Código-fonte disponível
Não
Categorias
Nenhuma
Visualizações da Versão
5