Skip to content

Commit

Permalink
1 FILE(s) | tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-d committed May 17, 2024
1 parent 02bc6be commit d70ffa3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d70ffa3

Please sign in to comment.