mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
* Mark SBD tests as requiring models
This commit is contained in:
parent
1b5f8b888f
commit
c0a63ac157
|
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
def test_single_period(EN):
|
def test_single_period(EN):
|
||||||
string = 'A test sentence.'
|
string = 'A test sentence.'
|
||||||
words = EN(string)
|
words = EN(string)
|
||||||
|
@ -11,6 +12,7 @@ def test_single_period(EN):
|
||||||
assert sum(len(sent) for sent in words.sents) == len(words)
|
assert sum(len(sent) for sent in words.sents) == len(words)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
def test_single_no_period(EN):
|
def test_single_no_period(EN):
|
||||||
string = 'A test sentence'
|
string = 'A test sentence'
|
||||||
words = EN(string)
|
words = EN(string)
|
||||||
|
@ -19,6 +21,7 @@ def test_single_no_period(EN):
|
||||||
assert sum(len(sent) for sent in words.sents) == len(words)
|
assert sum(len(sent) for sent in words.sents) == len(words)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
def test_single_exclamation(EN):
|
def test_single_exclamation(EN):
|
||||||
string = 'A test sentence!'
|
string = 'A test sentence!'
|
||||||
words = EN(string)
|
words = EN(string)
|
||||||
|
@ -27,6 +30,7 @@ def test_single_exclamation(EN):
|
||||||
assert sum(len(sent) for sent in words.sents) == len(words)
|
assert sum(len(sent) for sent in words.sents) == len(words)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
def test_single_question(EN):
|
def test_single_question(EN):
|
||||||
string = 'A test sentence?'
|
string = 'A test sentence?'
|
||||||
words = EN(string, tag=False, parse=False)
|
words = EN(string, tag=False, parse=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user