← Back
Editing: resources.cpython-38.pyc
U _��O� � @ 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 dkr d} 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 )Z markup_urlZmarkup� 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)Zapplication)r r r )�selfZdependency_resourcesr r r �make3 s ��zFakeLaunchpadResource.makeN)�__name__� __module__�__qualname__r r r r r r 1 s r )�__doc__Z pkg_resourcesr Z testresourcesr Zwadllib.applicationr Zlaunchpadlib.testing.launchpadr r r r r r r r �<module> s
Save File
Cancel