Skip to content

Commit 5e39538

Browse files
committed
Remove the use of extra variable for params to prevent global scope in the file
1 parent 73d8ada commit 5e39538

File tree

2 files changed

+164
-171
lines changed

2 files changed

+164
-171
lines changed

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ def wavelength_warning_msg():
4646
"To specify a wavelength, if you have do = DiffractionObject(xarray, yarray, 'tth'), "
4747
"you may set do.wavelength = 1.54 for a wavelength of 1.54 angstroms."
4848
)
49+
50+
51+
@pytest.fixture
52+
def invalid_q_or_d_or_wavelength_error_msg():
53+
return (
54+
"The supplied input array and wavelength will result in an impossible two-theta. "
55+
"Please check these values and re-instantiate the DiffractionObject with correct values."
56+
)

0 commit comments

Comments
 (0)