mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-09-19 23:44:28 +00:00
22 lines
458 B
Python
22 lines
458 B
Python
|
import pytest
|
||
|
from typing import Dict
|
||
|
|
||
|
|
||
|
from nwb_linkml import io
|
||
|
import shutil
|
||
|
from pathlib import Path
|
||
|
|
||
|
@pytest.fixture(scope="session")
|
||
|
def tmp_output_dir() -> Path:
|
||
|
path = Path(__file__).parent.resolve() / '__tmp__'
|
||
|
if path.exists():
|
||
|
shutil.rmtree(str(path))
|
||
|
path.mkdir()
|
||
|
|
||
|
return path
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="session")
|
||
|
def nwb_core_fixture() -> Dict[str, io.NamespaceBundle]:
|
||
|
nwb_core = io.load_nwb_core()
|
||
|
return nwb_core
|