From d70ffa3b047c2d9957ae5ce25dd39770c3035cc3 Mon Sep 17 00:00:00 2001 From: Cary Carter Date: Fri, 17 May 2024 05:11:20 -0700 Subject: [PATCH] 1 FILE(s) | tests.py --- tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 75b61f0..76baa0d 100644 --- a/tests.py +++ b/tests.py @@ -229,7 +229,10 @@ def test_generate_cmd(cmd: T.List[str], local_client: Open2FA): @pt.fixture def remote_client(randir: str): client = Open2FA(o2fa_dir=randir, o2fa_uuid=None, o2fa_api_url=_URL) - with patch('sys.argv', ['cli.py', 'remote', 'init']): + with patch('sys.argv', ['cli.py', 'remote', 'init']), patch( + 'open2fa.main.input', return_value='y' + ): + o2fa = main( **{ 'o2fa_dir': client.dir,