def test_get_paths(path_completion_tree):
    """Starting directories for path completion can be set."""
    test_input = "ba"
    message = "Pick your path"
    texts = [
        test_input,
        KeyInputs.TAB + KeyInputs.ENTER,
        KeyInputs.ENTER,
    ]

    result, cli = feed_cli_with_input(
        "path",
        message,
        texts,
        0.1,
        get_paths=lambda: [str(path_completion_tree / "foo")],
    )
    assert result == "baz.any"
Starting directories for path completion can be set.
tests/prompts/test_path.py