文件操作 - helpers.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/launchpadlib/testing/__pycache__/helpers.cpython-310.pyc
编辑文件内容
o �{a � @ s� d Z eZg d�ZddlmZ ddlZddlmZ ddl m Z mZmZ e � Zdd� ZG d d � d e�ZG dd� de�ZG d d� de�Zedd� �ZG dd� d�ZG dd� d�ZG dd� d�ZG dd� d�Zedd�Zedd�Zedd�ZdS )zlaunchpadlib testing helpers.) �BadSaveKeyring�fake_keyring�FauxSocketModule�InMemoryKeyring�NoNetworkAuthorizationEngine�NoNetworkLaunchpad�TestableLaunchpad�nopriv_read_nonprivate�salgado_read_nonprivate�salgado_with_full_permissions� )�contextmanagerN)� Launchpad)�AccessToken�Credentials�RequestTokenAuthorizationEnginec C s t tjdt�tu s J d��d S )N�keyringz>During tests the real keyring module should never be imported.)�getattr�launchpadlib�credentials�missing� r r �>/usr/lib/python3/dist-packages/launchpadlib/testing/helpers.py�assert_keyring_not_imported2 s �r c s4 e Zd ZdZdZ� fdd�Zdd� Zdd� Z� ZS ) r a An authorization engine that doesn't open a web browser. You can use this to test the creation of Launchpad objects and the storing of credentials. You can't use it to interact with the web service, since it only pretends to authorize its OAuth request tokens. z access_key:84c s&