Skip to content

Commit 9ef4bde

Browse files
committed
Mock correct function
1 parent 605a756 commit 9ef4bde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_util_get_values.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ def test_values():
109109
assert 2 in ret
110110

111111

112-
@mock.patch('dpath.util.search')
112+
@mock.patch('dpath.search')
113113
def test_values_passes_through(searchfunc):
114114
searchfunc.return_value = []
115115

116116
def y():
117-
pass
117+
return False
118118

119119
dpath.util.values({}, '/a/b', ':', y, False)
120120
searchfunc.assert_called_with({}, '/a/b', True, ':', y, False)

0 commit comments

Comments
 (0)