Skip to content

Commit 21f7477

Browse files
committed
Added a class test that uses the same reference
1 parent 1dca33a commit 21f7477

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_pytest_arraydiff.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,17 @@ def test_single_reference(spam):
162162
return np.ones((3, 4)) * 1.6 + 1.4
163163

164164

165+
class TestSingleReferenceClass:
166+
167+
@pytest.mark.array_compare(
168+
reference_dir=reference_dir,
169+
atol=1.5,
170+
file_format='fits',
171+
single_reference=True)
172+
@pytest.mark.parametrize('spam', ('egg', 'bacon'))
173+
def test_single_reference(self, spam):
174+
return np.ones((3, 4)) * 1.6 + 1.4
175+
176+
165177
def test_nofile():
166178
pass

0 commit comments

Comments
 (0)