Mockify
v0.9.1
Installation
Quickstart
Tutorial
Creating mocks and recording expectations
Most common assertions
Setting expected call count
Recording actions
Managing multiple mocks
Using matchers
Patching imported modules
Recording ordered expectations
Tips & tricks
API Reference
Changelog
License
Mockify
Docs
»
Tutorial
Edit on GitLab
Tutorial
ΒΆ
Creating mocks and recording expectations
Introduction
Mocking functions
Mocking objects with methods
Mocking functions behind a namespace or module
Creating ad-hoc data objects
Mocking getters
Mocking setters
Correlated setters and getters
Most common assertions
Uninterested mock calls
Unexpected mock calls
Unsatisfied and satisfied mocks
Setting expected call count
Expecting mock to be called given number of times
Expecting mock to be never called
Setting expected call count using
cardinality objects
Recording actions
What are actions used for?
Single actions
Action chains
Repeated actions
Repeated actions with cardinality
Using chained and repeated actions together
Using chained and repeated actions with cardinality
Managing multiple mocks
Introduction
Using mock factories
Using mock factories with test suites
Using sessions
Using matchers
Introduction
Recording expectations with matchers
Combining matchers
Using matchers in structured data
Using matchers in custom objects
Using matchers out of Mockify library
Patching imported modules
Recording ordered expectations
Read the Docs
v: v0.9.1
Versions
latest
stable
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7.0
v0.6.5
v0.6.4
v0.5.0
v0.4.0
v0.3.1
v0.2.1
v0.1.12
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.