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 1ee2157 commit 8053d31Copy full SHA for 8053d31
tests/test_diffraction_objects.py
@@ -164,19 +164,19 @@ def test_diffraction_objects_equality(inputs1, inputs2, expected):
164
165
166
@pytest.mark.parametrize(
167
- "input_xtype, expected_xarray",
+ "xtype, expected_xarray",
168
[
169
("tth", np.array([30, 60])),
170
("2theta", np.array([30, 60])),
171
("q", np.array([0.51764, 1])),
172
("d", np.array([12.13818, 6.28319])),
173
],
174
)
175
-def test_on_xtype(input_xtype, expected_xarray, do_minimal_tth):
+def test_on_xtype(xtype, expected_xarray, do_minimal_tth):
176
do = do_minimal_tth
177
- result = do.on_xtype(input_xtype)
178
- assert np.allclose(result[0], expected_xarray)
179
- assert np.allclose(result[1], np.array([1, 2]))
+ actual_xrray, actual_yarray = do.on_xtype(xtype)
+ assert np.allclose(actual_xrray, expected_xarray)
+ assert np.allclose(actual_yarray, np.array([1, 2]))
180
181
182
def test_init_invalid_xtype():
0 commit comments