Several tests in test_run_functions.py have TODO comments indicating missing assertions (e.g., lines 170, 287, 291, 341, 514, 555). These include checks for holdout tasks, parameter presence, and runtime values, which would improve test reliability.
Steps:
- Review each TODO comment and the surrounding test code to understand what's being tested.
- Add appropriate assertions, such as:
assert task.task_type == "holdout" for holdout task checks.
assert "runtime" in run.attributes for runtime presence.
assert len(run.parameters) > 0 for parameter checks.
- Run the tests to ensure they pass and cover the intended behavior.
- If needed, mock or set up test data to make assertions deterministic.
Tests will be more comprehensive, catching regressions in run handling and parameter validation.
Several tests in test_run_functions.py have TODO comments indicating missing assertions (e.g., lines 170, 287, 291, 341, 514, 555). These include checks for holdout tasks, parameter presence, and runtime values, which would improve test reliability.
Steps:
assert task.task_type == "holdout"for holdout task checks.assert "runtime" in run.attributesfor runtime presence.assert len(run.parameters) > 0for parameter checks.Tests will be more comprehensive, catching regressions in run handling and parameter validation.