Auto-format [ci skip]

This commit is contained in:
Ines Montani 2019-03-12 13:35:34 +01:00
parent 2912ddc9a6
commit 479b5cff43
1 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,7 @@ def test_displacy_rtl():
assert "direction: rtl" in html
assert 'lang="{}"'.format(nlp.lang) in html
def test_displacy_render_wrapper(en_vocab):
"""Test that displaCy accepts custom rendering wrapper."""
@ -85,5 +86,5 @@ def test_displacy_render_wrapper(en_vocab):
html = displacy.render(doc, style="ent")
assert html.startswith("TEST<div")
assert html.endswith("/div>TEST")
# Restore
displacy.set_render_wrapper(lambda html: html)
# Restore
displacy.set_render_wrapper(lambda html: html)