File: test_bind_var_pos.py

package info (click to toggle)
python-cyclopts 3.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,288 kB
  • sloc: python: 11,445; makefile: 24
file content (8 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
def test_bind_var_pos(app):
    """Checks if "Alice" gets erroneously unpacked into ``("A", "l", "i", "c", "e")``."""

    @app.default
    def default(*tokens: str):
        assert tokens == ("Alice",)

    app(["Alice"])