def test_prompt_str_non_empty(monkeypatch: pytest.MonkeyPatch) -> None:
  """_prompt_str should retry until a non-blank string is provided."""
  responses = iter(["", " ", "valid"])
  monkeypatch.setattr(click, "prompt", lambda *_a, **_k: next(responses))
  assert cli_create._prompt_str("dummy") == "valid"
_prompt_str should retry until a non-blank string is provided.
tests/unittests/cli/utils/test_cli_create.py