Skip to content

Commit

Permalink
Add role_path to get_sequence_length call
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed May 9, 2024
1 parent bad7453 commit f9aa23a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nmostesting/suites/MS0502Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ def _do_check(check_function):
def _do_set_sequence():
index = self.ms05_utils.get_sequence_length(test,
constrained_property['property_id'],
oid=constrained_property['oid'])
oid=constrained_property['oid'],
role_path=constrained_property['role_path'])
self.ms05_utils.set_sequence_item(test,
constrained_property['property_id'],
index - 1,
Expand Down Expand Up @@ -447,7 +448,7 @@ def _do_check_property_test(self, test, question, get_constraints=False, get_seq
except NMOSTestException as e:
return test.FAIL(constrained_property.get("name")
+ ": error setting property: "
+ str(e.args[0].detail),
+ str(e.args[0].detail)
+ ": constraint " + str(constraint))

try:
Expand Down Expand Up @@ -710,6 +711,7 @@ def _do_check_methods_test(self, test, question):
""".format(method.get("name"), result.status)
except NMOSTestException as e:
# ignore 4xx errors
self.ms05_utils.validate_reference_datatype_schema(test, e.args[0].detail, "NcMethodResult")
if e.args[0].detail['status'] >= 500:
self.invoke_methods_metadata['error'] = True
self.invoke_methods_metadata['error_msg'] += """
Expand Down

0 comments on commit f9aa23a

Please sign in to comment.