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 207e22b commit a2c09ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import os.path as osp
import typing as T

from shutil import rmtree
from typing import Union as U, Generator as Gen, Callable as Call, Any
Expand Down Expand Up @@ -82,7 +83,7 @@ def local_client(ranuuid_module: str, randir: str):
]


def exec_cmd(cmd: list, client: Open2FA) -> tuple[Open2FA, str]:
def exec_cmd(cmd: list, client: Open2FA) -> T.Tuple[Open2FA, str]:
cmd = ['cli.py'] + [str(c) for c in cmd]
with patch('sys.argv', cmd), patch(
'sys.stdout', new_callable=StringIO
Expand Down

0 comments on commit a2c09ee

Please sign in to comment.