Skip to content

Commit cb78e5d

Browse files
authored
Bugfix/Wrong parameter set on assertion. (#30)
1 parent 700f1a8 commit cb78e5d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

connect/devops_testing/asserts.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,7 @@ def tier_configuration_param_value(
180180
msg: Optional[str] = None,
181181
):
182182
fn = __operators.get(operator)
183-
param = find_by_id(
184-
request.get('params', request.get('configuration', {}).get('params', [])),
185-
param_id,
186-
{},
187-
)
183+
param = find_by_id(request.get('configuration', {}).get('params', []), param_id, {})
188184
value, expected = _prepare_assert_argument(param, expected)
189185
assert fn(value, expected), ASSERT_FAIL if msg is None else msg.format(
190186
param_id=param_id,
@@ -217,11 +213,7 @@ def tier_configuration_param_value_error(
217213
msg: Optional[str] = None,
218214
):
219215
fn = __operators.get(operator)
220-
param = find_by_id(
221-
request.get('params', request.get('configuration', {}).get('params', [])),
222-
param_id,
223-
{},
224-
)
216+
param = find_by_id(request.get('configuration', {}).get('params', []), param_id, {})
225217
value = param.get('value_error', '')
226218
assert fn(value, expected), ASSERT_FAIL if msg is None else msg.format(
227219
param_id=param_id,

0 commit comments

Comments
 (0)