From a140a591f5d3b9f319f97b08b6ed361f609e2ad4 Mon Sep 17 00:00:00 2001 From: Ankush-Chander Date: Wed, 21 Dec 2022 18:52:26 +0530 Subject: [PATCH] modify test case. --- spacy/tests/matcher/test_matcher_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/matcher/test_matcher_api.py b/spacy/tests/matcher/test_matcher_api.py index ac905eeb4..a37d5cf62 100644 --- a/spacy/tests/matcher/test_matcher_api.py +++ b/spacy/tests/matcher/test_matcher_api.py @@ -84,7 +84,7 @@ def test_matcher_add_new_api(en_vocab): on_match = Mock() matcher.add("NEW_API_CALLBACK", patterns, on_match=on_match) assert len(matcher(doc)) == 2 - assert on_match.call_count == 2 + assert on_match.call_count == 1 def test_matcher_no_match(matcher):