Skip to content

Commit

Permalink
Add news and scale to need to be more refined
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Dec 23, 2024
1 parent 625b69b commit 406175d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
23 changes: 23 additions & 0 deletions news/pytest-comment.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* Group's Pytest practices for using @pytest.mark.parametrize in test_diffraction_objects.py

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
3 changes: 1 addition & 2 deletions tests/test_diffraction_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_diffraction_objects_equality(
"xtype, expected_xarray",
[
# Test whether on_xtype returns the correct xarray values.
# The test DO instance is initialized with tth.
# C1: tth to tth, expect no change in xaray value
# 1. "tth" provided, expect tth
# 2. "2theta" provided, expect tth
Expand Down Expand Up @@ -199,7 +198,7 @@ def test_init_invalid_xtype():
"org_do_args, target_do_args, scale_inputs, expected",
[
# Test whether scale_to() scales to the expected values
# C1: Same x-array and y-array, check offset
# C1: Same x-array and y-array with 2.1 offset, expect yarray shifted by 2.1 offset
(
{
"xarray": np.array([10, 15, 25, 30, 60, 140]),
Expand Down

0 comments on commit 406175d

Please sign in to comment.