1
0
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:
Sebastian Pipping
2023-06-02 16:57:06 +02:00
parent f06f71ece4
commit bf30d9a5e5

View File

@@ -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):