File: test_password.py

package info (click to toggle)
python-questionary 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: python: 3,917; makefile: 66
file content (10 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# -*- coding: utf-8 -*-
from tests.utils import feed_cli_with_input


def test_password_entry():
    message = "What is your password"
    text = "my password\r"

    result, cli = feed_cli_with_input("password", message, text)
    assert result == "my password"