callee provides a wide collection of argument matchers to use with the standard
It allows you to write simple, readable, and powerful assertions on how the tested code should interact with your mocks:
from callee import Dict, StartsWith, String mock_requests.get.assert_called_with( String() & StartsWith('https://'), params=Dict(String(), String()))
Start here for the installation instructions and a quick, complete overview of callee and its usage.
If you are looking for detailed information about all the matchers offered by callee, this is the place to go.
- General matchers
- String matchers
- Numeric matchers
- Collection matchers
- Operator matchers