Skip to content

Commit

Permalink
Reuse an existing function
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Apr 21, 2020
1 parent 6cf77d7 commit 0aa1b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_server_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pytest
import re
import stanza.server as corenlp
from tests import compare_ignoring_whitespace

pytestmark = pytest.mark.client

Expand Down Expand Up @@ -40,7 +41,7 @@ def test_english_request():
""" Test case of starting server with Spanish defaults, and then requesting default English properties """
with corenlp.CoreNLPClient(properties='spanish', server_id='test_english_request') as client:
ann = client.annotate(EN_DOC, properties_key='english', output_format='text')
assert re.sub('[ \t]+', ' ', ann.strip()) == re.sub('[ \t]+', ' ', EN_DOC_GOLD.strip())
compare_ignoring_whitespace(ann, EN_DOC_GOLD)



Expand Down

0 comments on commit 0aa1b69

Please sign in to comment.