dyspop / figgy

Allows end-user Configuration generation for development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getpass asks for password from pytest

dyspop opened this issue · comments

tests/test_make.py ...Password: 
.                                                                                        [100%]

============================================== 4 passed in 1.34

tests still pass...

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")