mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +03:00
modify test case.
This commit is contained in:
parent
cf6f208409
commit
a140a591f5
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user