Skip to content

Commit 890f729

Browse files
committed
Change UC to Case for unit testing
1 parent e8fd9d1 commit 890f729

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_diffraction_objects.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
False,
5555
),
56-
( # One without wavelnegth, expect inequality
56+
( # One without wavelength, expect inequality
5757
{
5858
"wavelength": 0.71,
5959
"xtype": "tth",
@@ -170,7 +170,7 @@ def test_init_invalid_xtype():
170170
@pytest.mark.parametrize(
171171
"org_do_args, target_do_args, scale_inputs, expected",
172172
[
173-
# UC1: same x-array and y-array, check offset
173+
# Case 1: same x-array and y-array, check offset
174174
(
175175
{
176176
"xarray": np.array([10, 15, 25, 30, 60, 140]),
@@ -192,7 +192,7 @@ def test_init_invalid_xtype():
192192
},
193193
{"xtype": "tth", "yarray": np.array([4.1, 5.1, 6.1, 7.1, 8.1, 9.1])},
194194
),
195-
# UC2: same length x-arrays with exact x-value match
195+
# Case 2: same length x-arrays with exact x-value match
196196
(
197197
{
198198
"xarray": np.array([10, 15, 25, 30, 60, 140]),
@@ -214,7 +214,7 @@ def test_init_invalid_xtype():
214214
},
215215
{"xtype": "tth", "yarray": np.array([1, 2, 2.5, 3, 6, 10])},
216216
),
217-
# UC3: same length x-arrays with approximate x-value match
217+
# Case 3: same length x-arrays with approximate x-value match
218218
(
219219
{
220220
"xarray": np.array([0.12, 0.24, 0.31, 0.4]),
@@ -236,7 +236,7 @@ def test_init_invalid_xtype():
236236
},
237237
{"xtype": "q", "yarray": np.array([1, 2, 4, 6])},
238238
),
239-
# UC4: different x-array lengths with approximate x-value match
239+
# Case 4: different x-array lengths with approximate x-value match
240240
(
241241
{
242242
"xarray": np.array([10, 25, 30.1, 40.2, 61, 120, 140]),
@@ -256,7 +256,7 @@ def test_init_invalid_xtype():
256256
"d": None,
257257
"offset": 0,
258258
},
259-
# Scaling factor is calculated at index = 4 (tth=61) for self and index = 5 for target (tth=62)
259+
# Case 5: Scaling factor is calculated at index = 4 (tth=61) for self and index = 5 for target (tth=62)
260260
{"xtype": "tth", "yarray": np.array([1, 2, 3, 4, 5, 6, 10])},
261261
),
262262
],

0 commit comments

Comments
 (0)