mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
vcr/unittest: Fix test test_get_vcr_with_matcher
Matcher needs attribute __name__ for function vcr.matchers.get_matchers_results .
This commit is contained in:
@@ -123,7 +123,7 @@ def test_get_vcr_with_matcher(tmpdir):
|
||||
cassette_dir = tmpdir.mkdir('cassettes')
|
||||
assert len(cassette_dir.listdir()) == 0
|
||||
|
||||
mock_matcher = MagicMock(return_value=True)
|
||||
mock_matcher = MagicMock(return_value=True, __name__='MockMatcher')
|
||||
|
||||
class MyTest(VCRTestCase):
|
||||
def test_foo(self):
|
||||
|
||||
Reference in New Issue
Block a user