1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-03-19 17:34:25 +03:00
spaCy/spacy/tests/test_misc.py
2017-04-23 21:21:41 +02:00

14 lines
300 B
Python

# coding: utf-8
from __future__ import unicode_literals
from ..util import ensure_path
from pathlib import Path
import pytest
@pytest.mark.parametrize('text', ['hello/world', 'hello world'])
def test_util_ensure_path_succeeds(text):
path = ensure_path(text)
assert isinstance(path, Path)