black formatting

pull/10242/head
olgavrou 10 months ago
parent ccea1e9147
commit 42d0d485a9

@ -1,8 +1,9 @@
import ctypes
def is_libcublas_available() -> bool:
try:
ctypes.CDLL("libcublas.so")
return True
except OSError:
return False
return False

@ -12,6 +12,7 @@ def check_spacy_model() -> Iterator[None]:
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
yield
@pytest.fixture(scope="module", autouse=True)
def check_libcublas() -> Iterator[None]:
if not is_libcublas_available():
@ -19,7 +20,6 @@ def check_libcublas() -> Iterator[None]:
yield
@pytest.mark.requires("presidio_analyzer", "presidio_anonymizer", "faker")
@pytest.mark.parametrize(
"analyzed_fields,should_contain",

@ -13,6 +13,7 @@ def check_spacy_model() -> Iterator[None]:
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
yield
@pytest.fixture(scope="module", autouse=True)
def check_libcublas() -> Iterator[None]:
if not is_libcublas_available():

Loading…
Cancel
Save