mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-14 02:34:28 +00:00
sneakers-the-rat
eac5ef4c80
move conftest to root so we find doctests? maybe we don't want to keep that tho
20 lines
543 B
Python
20 lines
543 B
Python
import os
|
|
import pytest
|
|
from doctest import ELLIPSIS, NORMALIZE_WHITESPACE
|
|
|
|
from tests.fixtures import tmp_output_dir
|
|
|
|
from sybil import Sybil
|
|
from sybil.parsers.rest import DocTestParser, PythonCodeBlockParser
|
|
|
|
pytest_collect_file = Sybil(
|
|
parsers=[
|
|
DocTestParser(optionflags=ELLIPSIS + NORMALIZE_WHITESPACE),
|
|
PythonCodeBlockParser(),
|
|
],
|
|
patterns=['*.py'],
|
|
).pytest()
|
|
|
|
@pytest.fixture(autouse=True, scope='session')
|
|
def set_config_vars(tmp_output_dir):
|
|
os.environ['NWB_LINKML_CACHE_DIR'] = str(tmp_output_dir)
|