We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7abbe commit cc264d3Copy full SHA for cc264d3
tests/conftest.py
@@ -17,3 +17,13 @@ def user_filesystem(tmp_path):
17
json.dump(home_config_data, f)
18
19
yield tmp_path
20
+
21
22
+@pytest.fixture
23
+def datafile():
24
+ """Fixture to dynamically load any test file."""
25
26
+ def _load(filename):
27
+ return "tests/testdata/" + filename
28
29
+ return _load
tests/test_version.py
@@ -1,6 +1,6 @@
1
"""Unit tests for __version__.py."""
2
3
-import diffpy.structure # noqa
+import diffpy.structure
4
5
6
def test_package_version():
0 commit comments