Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE 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&