Skip to content

Commit 406175d

Browse files
committed
Add news and scale to need to be more refined
1 parent 625b69b commit 406175d

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

news/pytest-comment.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* Group's Pytest practices for using @pytest.mark.parametrize in test_diffraction_objects.py
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

tests/test_diffraction_objects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def test_diffraction_objects_equality(
165165
"xtype, expected_xarray",
166166
[
167167
# Test whether on_xtype returns the correct xarray values.
168-
# The test DO instance is initialized with tth.
169168
# C1: tth to tth, expect no change in xaray value
170169
# 1. "tth" provided, expect tth
171170
# 2. "2theta" provided, expect tth
@@ -199,7 +198,7 @@ def test_init_invalid_xtype():
199198
"org_do_args, target_do_args, scale_inputs, expected",
200199
[
201200
# Test whether scale_to() scales to the expected values
202-
# C1: Same x-array and y-array, check offset
201+
# C1: Same x-array and y-array with 2.1 offset, expect yarray shifted by 2.1 offset
203202
(
204203
{
205204
"xarray": np.array([10, 15, 25, 30, 60, 140]),

0 commit comments

Comments
 (0)