* Mark tests that require models

This commit is contained in:
Matthew Honnibal 2015-11-07 19:27:38 +11:00
parent 8e26a28616
commit 31da42eb27
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,8 @@ def test_issue_54(EN):
text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).' text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).'
tokens = EN(text) tokens = EN(text)
@pytest.mark.models
def test_np_merges(EN): def test_np_merges(EN):
text = u'displaCy is a parse tool built with Javascript' text = u'displaCy is a parse tool built with Javascript'
tokens = EN(text) tokens = EN(text)
@ -57,6 +59,7 @@ def test_entity_merge(EN):
# check looping is ok # check looping is ok
assert(len(tokens) == 15) assert(len(tokens) == 15)
@pytest.mark.models @pytest.mark.models
def test_sentence_update_after_merge(EN): def test_sentence_update_after_merge(EN):
tokens = EN(u'Stewart Lee is a stand up comedian. He lives in England and loves Joe Pasquale.') tokens = EN(u'Stewart Lee is a stand up comedian. He lives in England and loves Joe Pasquale.')
@ -70,6 +73,7 @@ def test_sentence_update_after_merge(EN):
assert(len(sent1) == init_len - 1) assert(len(sent1) == init_len - 1)
assert(len(sent2) == init_len2 - 1) assert(len(sent2) == init_len2 - 1)
@pytest.mark.models @pytest.mark.models
def test_subtree_size_check(EN): def test_subtree_size_check(EN):
tokens = EN(u'Stewart Lee is a stand up comedian who lives in England and loves Joe Pasquale') tokens = EN(u'Stewart Lee is a stand up comedian who lives in England and loves Joe Pasquale')