update_test_case
Modify a dataset test case by updating its name, inputs, expected data, setup or cleanup source, or clearing selected fields while leaving omitted fields unchanged.
Instructions
Changes one test case of a Dataset. Fields you leave out are kept.
inputs replaces the inputs and works only on a test case created with inputs, not on a
Session-based one. expected replaces the expected data.
:param dataset_id: The Dataset's id.
:param test_case_id: The test case's id.
:param name: The new name.
:param inputs: The new pipeline inputs, as {name: value}.
:param expected: The new expected data.
:param setup_source: New Python source that runs before every replay.
:param cleanup_source: New Python source that runs after every replay.
:param clear: Fields to remove from the test case.
:returns: The test case, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| clear | No | ||
| inputs | No | ||
| expected | No | ||
| dataset_id | Yes | ||
| setup_source | No | ||
| test_case_id | Yes | ||
| cleanup_source | No |