diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_cli_dispatch.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_cli_dispatch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_cli_dispatch.py b/packages/meshbay-node/tests/test_cli_dispatch.py index 62dfe13..fdcd82e 100644 --- a/packages/meshbay-node/tests/test_cli_dispatch.py +++ b/packages/meshbay-node/tests/test_cli_dispatch.py @@ -74,6 +74,8 @@ def stub_daemon(monkeypatch, tmp_path): # No interactive prompt left to hang on. monkeypatch.setattr("builtins.input", lambda *a: "n") + import getpass + monkeypatch.setattr(getpass, "getpass", lambda *a, **kw: "test-password") # `reload` looks for a real daemon and signals it. Without this the test # SIGHUPs whatever node happens to be running on the machine — which it did, |