Testix
Contents:
Reference
Basic Usage: Scenarios and Fake Objects
Less Strict Expectations
Context Manager Expectations
Advanced Argument Expectations
Hooks
AsyncIO Support
Tutorial
Testix
Reference
View page source
Reference
Basic Usage: Scenarios and Fake Objects
Scenarios and Fake Objects
More Complex Expectations
Overriding Imported Modules With Fake Objects
Using
patch_module
To Mock Builtin Objects
Using
patch_module
With Arbitrary Values
The Most Common Ways To Create Fake Objects
Less Strict Expectations
Less Specific Arguments
Unordered Expectations
Everlasting Expectations
Context Manager Expectations
Advanced Argument Expectations
Ignoring A Specific Argument
Ignoring All Call Details
Testing for Object Identity
Raising Exceptions
Capturing Arguments
Implementing Arbitrary Argument Matching
Hooks
AsyncIO Support
AsyncIO Expectations
AsyncIO Context Managers
AsyncIO Async For Loops