mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 09:15:34 +00:00
Use a pytest fixture to locate the testdata directory
This commit is contained in:
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""Helpers for pytest tests."""
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def testdata_dir():
|
||||
"""Path to the testdata directory."""
|
||||
return os.path.join(os.path.dirname(__file__), 'testdata')
|
||||
Reference in New Issue
Block a user