(self)
| 1843 | assert result.next_steps == [] |
| 1844 | |
| 1845 | def test_validate_missing_fields(self): |
| 1846 | from specify_cli.workflows.steps.while_loop import WhileStep |
| 1847 | |
| 1848 | step = WhileStep() |
| 1849 | errors = step.validate({"id": "test", "steps": []}) |
| 1850 | assert any("missing 'condition'" in e for e in errors) |
| 1851 | # max_iterations is optional (defaults to 10) |
| 1852 | |
| 1853 | def test_validate_invalid_max_iterations(self): |
| 1854 | from specify_cli.workflows.steps.while_loop import WhileStep |