Skip to content

Commit 27baf71

Browse files
committed
Expose mock.ANY in mocker fixture
It's handy for when you want to check _some_ parameters in a call list but not necessarily all of them.
1 parent fbd1977 commit 27baf71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytest_mock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class MockFixture(object):
1818

1919
Mock = mock_module.Mock
2020
MagicMock = mock_module.MagicMock
21+
ANY = mock_module.ANY
2122

2223
def __init__(self):
2324
self._patches = [] # list of mock._patch objects

0 commit comments

Comments
 (0)