| Server IP : 62.171.151.215 / Your IP : 216.73.217.53 Web Server : nginx/1.18.0 System : Linux vmi3128365 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64 User : alex ( 1000) PHP Version : 8.4.18 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� � @ sT d Z ddlmZ ddlmZ ddlmZ ddlmZ da dd� Z
G d d
� d
e�ZdS )zAResources for use in unit tests with the C{testresources} module.� )�resource_string)�TestResource)�Application)�
FakeLaunchpadNc C s$ t du rd} tdd�}t| |�a t S )a Get or create a WADL application for testing Launchpad.
Note that this uses the Launchpad v1.0 WADL bundled with launchpadlib for
testing purposes. For your own application, you might want to construct
an L{Application} object directly, giving it your own WADL.
Nzhttps://api.launchpad.net/1.0/�launchpadlib.testingzlaunchpad-wadl.xml)�launchpad_testing_applicationr r )�
markup_url�markup� r
�@/usr/lib/python3/dist-packages/launchpadlib/testing/resources.py�get_application! s
r c @ s e Zd Zdd� ZdS )�FakeLaunchpadResourcec C s t tdtdd��d�S )Nz https://api.example.com/testing/r ztesting-wadl.xml)�application)r r r )�self�dependency_resourcesr
r
r �make1 s ��zFakeLaunchpadResource.makeN)�__name__�
__module__�__qualname__r r
r
r
r r
0 s r
)�__doc__�
pkg_resourcesr �
testresourcesr �wadllib.applicationr �launchpadlib.testing.launchpadr r r r
r
r
r
r �<module> s