Skip to content

Commit e4cf9f3

Browse files
committed
Fix contest not to use __init__.py content
1 parent 2f8aace commit e4cf9f3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
from importlib import resources
32
from pathlib import Path
43

54
import pytest
@@ -20,15 +19,11 @@ def user_filesystem(tmp_path):
2019
yield tmp_path
2120

2221

23-
def get_datafile(filename):
24-
return str(resources.files(__package__).joinpath("testdata/" + filename))
25-
26-
2722
@pytest.fixture
2823
def datafile():
2924
"""Fixture to dynamically load any test file."""
3025

3126
def _load(filename):
32-
return get_datafile(filename)
27+
return "tests/testdata/" + filename
3328

3429
return _load

0 commit comments

Comments
 (0)