Skip to content

Commit 8053d31

Browse files
committed
improve test variable name
1 parent 1ee2157 commit 8053d31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_diffraction_objects.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@ def test_diffraction_objects_equality(inputs1, inputs2, expected):
164164

165165

166166
@pytest.mark.parametrize(
167-
"input_xtype, expected_xarray",
167+
"xtype, expected_xarray",
168168
[
169169
("tth", np.array([30, 60])),
170170
("2theta", np.array([30, 60])),
171171
("q", np.array([0.51764, 1])),
172172
("d", np.array([12.13818, 6.28319])),
173173
],
174174
)
175-
def test_on_xtype(input_xtype, expected_xarray, do_minimal_tth):
175+
def test_on_xtype(xtype, expected_xarray, do_minimal_tth):
176176
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]))
177+
actual_xrray, actual_yarray = do.on_xtype(xtype)
178+
assert np.allclose(actual_xrray, expected_xarray)
179+
assert np.allclose(actual_yarray, np.array([1, 2]))
180180

181181

182182
def test_init_invalid_xtype():

0 commit comments

Comments
 (0)