コード例 #1
0
ファイル: test_cli.py プロジェクト: octopus-energy/aws-mfa-v2
def test_ykman_is_installed(monkeypatch, tmp_path):
    '''
    Test check if ykman is installed
    '''
    monkeypatch.setenv('HOME', str(tmp_path))
    init_tmpdir(tmp_path, 'expired')
    from awsmfav2.cli import CLI
    cli = CLI()
    assert (cli._ykman_is_installed())
コード例 #2
0
ファイル: test_cli.py プロジェクト: rkeiii/aws-mfa-v2
def test_ykman_is_installed(monkeypatch, tmp_path):
    """
    Test check if ykman is installed
    """
    monkeypatch.setenv("HOME", str(tmp_path))
    init_tmpdir(tmp_path, "expired")
    from awsmfav2.cli import CLI

    cli = CLI()
    assert cli._ykman_is_installed()