Skip to content

Commit 92a2c4c

Browse files
committed
Add do_minimal setup to conftest
1 parent 8fe6b99 commit 92a2c4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import json
22
from pathlib import Path
33

4+
import numpy as np
45
import pytest
56

7+
from diffpy.utils.diffraction_objects import DiffractionObject
8+
69

710
@pytest.fixture
811
def user_filesystem(tmp_path):
@@ -28,3 +31,9 @@ def _load(filename):
2831
return base_path / filename
2932

3033
return _load
34+
35+
36+
@pytest.fixture
37+
def do_minimal():
38+
# Create an instance of DiffractionObject with minimal setup
39+
return DiffractionObject(xarray=np.empty(0), yarray=np.empty(0), xtype="tth", wavelength=1.54)

0 commit comments

Comments
 (0)