getpass asks for password from pytest
dyspop opened this issue · comments
Dan Black commented
tests/test_make.py ...Password:
. [100%]
============================================== 4 passed in 1.34
tests still pass...
Dan Black commented
fixed with monkeypatch
from pytest:
def test_make_makes_json_actually(monkeypatch):
"""Did the file we wrote actually become json."""
monkeypatch.setattr('getpass.getpass', lambda x: "baz")