Skip to content

Commit f04f721

Browse files
authored
add required methods to mock InstrumentModel (#46)
1 parent dca90b3 commit f04f721

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/unit_tests/test_model_base.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ def get_characteristics(self, *args):
1111
def __call__(self, *args, **kwargs):
1212
return
1313

14+
def get_kernel(self, points, *meshes):
15+
return
16+
17+
def get_peak(self, points, *meshes):
18+
return
19+
20+
def broaden(self, points, data, *meshes):
21+
return
22+
1423

1524
class MockModelData:
1625
function = ''
@@ -116,4 +125,4 @@ def test_validate_settings_restriction_set_raises(model):
116125
with pytest.raises(InvalidInputError,
117126
match=r'The provided value for the \"setting\" setting \(500\) must be one '
118127
r'of the following values: {.+}'):
119-
model._validate_settings(model_data, {'setting': 500})
128+
model._validate_settings(model_data, {'setting': 500})

0 commit comments

Comments
 (0)