| Server IP : 195.114.193.97 / Your IP : 216.73.217.88 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/launchpadlib/testing/__pycache__/ |
Upload File : |
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&