File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed
Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 1+ **Added: **
2+
3+ * <news item>
4+
5+ **Changed: **
6+
7+ * <news item>
8+
9+ **Deprecated: **
10+
11+ * <news item>
12+
13+ **Removed: **
14+
15+ * <news item>
16+
17+ **Fixed: **
18+
19+ * Updated package structure to new group standard
20+
21+ **Security: **
22+
23+ * <news item>
Original file line number Diff line number Diff line change 11import json
2- from importlib .resources import as_file , files
32from pathlib import Path
43
54import pytest
@@ -20,18 +19,11 @@ def user_filesystem(tmp_path):
2019 yield tmp_path
2120
2221
23- def get_datafile (filename ):
24- """Helper function to retrieve the file path for test data."""
25- ref = files (__package__ ) / f"testdata/{ filename } "
26- with as_file (ref ) as rv :
27- return rv
28-
29-
3022@pytest .fixture
3123def datafile ():
3224 """Fixture to dynamically load any test file."""
3325
3426 def _load (filename ):
35- return get_datafile ( filename )
27+ return "tests/testdata/" + filename
3628
3729 return _load
You can’t perform that action at this time.
0 commit comments