| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/launchpadlib/testing/__pycache__/ |
Upload File : |
+
Z4i� � �2 � R t . ROt^ RIHt ^ RIt^ R IHt ^ R
IHtH t H
t
]! 4 tR t
! R R]
4 t ! R
R]4 t ! R R]4 t]R 4 t ! R R4 t ! R R4 t ! R R4 t ! R R4 t]! RR4 t]! RR4 t]! RR4 tR# )zlaunchpadlib testing helpers.�BadSaveKeyring�FauxSocketModule�InMemoryKeyring�NoNetworkAuthorizationEngine�NoNetworkLaunchpad�TestableLaunchpad)�contextmanagerN)� Launchpad)�AccessToken�Credentials�RequestTokenAuthorizationEnginec �b � \ \ P R \ 4 \ J g Q R4 hR# )�keyringz>During tests the real keyring module should never be imported.N)�getattr�launchpadlib�credentials�missing� � �>/usr/lib/python3/dist-packages/launchpadlib/testing/helpers.py�assert_keyring_not_importedr 0 s+ � ���(�(�)�W�=��H�H�G�H�Hr c �F a a� ] tR t^6t oRtRtV 3R ltR tR tRt Vt
V ;t# )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 �D <� \ SV ` ! V/ VB ^ V n ^ V n R# )� N)�super�__init__�request_tokens_obtained�access_tokens_obtained)�self�args�kwargs� __class__s &*,�r r �%NoNetworkAuthorizationEngine.__init__@ s% �� �
���$�)�&�)�'(��$�&'��#r c �8 � V ;P ^,
un R# )zcPretend to get a request token from the server.
We do this by simply returning a static token ID.
zrequest_token:42)r )r r s &&r �get_request_token�.NoNetworkAuthorizationEngine.get_request_tokenF s � �
�$�$��)�$�!r c �n � \ V P R4 Vn V ;P ^,
un R# )zrPretend to exchange a request token for an access token.
We do this by simply setting the access_token property.
zaccess_secret:168N)r
�ACCESS_TOKEN_KEY�access_tokenr )r r �
request_tokens &&&r �make_end_user_authorize_token�:NoNetworkAuthorizationEngine.make_end_user_authorize_tokenN s0 � �
$/��!�!�#6�$
�� �
�#�#�q�(�#r )r r )�__name__�
__module__�__qualname__�__firstlineno__�__doc__r'