(options)
| 6612 | from specify_cli.workflows._commands import _gate_outcome |
| 6613 | |
| 6614 | def _options_payload(options): |
| 6615 | state = SimpleNamespace( |
| 6616 | status=SimpleNamespace(value="paused"), |
| 6617 | current_step_id="review", |
| 6618 | step_results={ |
| 6619 | "review": { |
| 6620 | "type": "gate", |
| 6621 | "output": { |
| 6622 | "message": "m", |
| 6623 | "options": options, |
| 6624 | "choice": None, |
| 6625 | }, |
| 6626 | } |
| 6627 | }, |
| 6628 | ) |
| 6629 | return _gate_outcome(state)["options"] |
| 6630 | |
| 6631 | assert _options_payload([1, 2.5]) == ["1", "2.5"] # list |
| 6632 | assert _options_payload(("approve", "reject")) == ["approve", "reject"] # tuple |
nothing calls this directly
no test coverage detected