remove accidental commit

This commit is contained in:
svlandeg 2020-03-09 18:10:54 +01:00
parent 1724a4f75b
commit c4d030dbf6
1 changed files with 1 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import pytest
import re import re
from mock import Mock from mock import Mock
from spacy.matcher import Matcher, DependencyMatcher from spacy.matcher import Matcher, DependencyMatcher
from spacy.tokens import Doc, Token, Span from spacy.tokens import Doc, Token
from ..doc.test_underscore import clean_underscore from ..doc.test_underscore import clean_underscore
@ -458,10 +458,3 @@ def test_matcher_callback(en_vocab):
doc = Doc(en_vocab, words=["This", "is", "a", "test", "."]) doc = Doc(en_vocab, words=["This", "is", "a", "test", "."])
matches = matcher(doc) matches = matcher(doc)
mock.assert_called_once_with(matcher, doc, 0, matches) mock.assert_called_once_with(matcher, doc, 0, matches)
def test_matcher_span(matcher):
text = "JavaScript is good but Java is better"
doc = Doc(matcher.vocab, words=text.split())
span = Span(doc, 0, 3)
matches = matcher(span.as_doc())
assert len(matches) == 1