コード例 #1
0
def test_get_token():
    with mock.patch(
            "azure.identity._credentials.linux_vscode_adapter._get_refresh_token",
            return_value="VALUE"):
        assert get_credentials() == "VALUE"
コード例 #2
0
def test_mac_keychain_valid_value():
    with mock.patch("msal_extensions.osx.Keychain.get_generic_password",
                    return_value="VALUE"):
        assert get_credentials() == "VALUE"