← Back
Editing: manager.cpython-311.pyc
� ��Oc� � �D � d Z ddlZddlmZ G d� dej � � ZdS )z?TestExtensionManager Extension manager used only for testing. � N)� extensionc �2 � � e Zd ZdZdddi f� fd� Zd� Z� xZS )�TestExtensionManagera3 ExtensionManager that is explicitly initialized for tests. .. deprecated:: 0.13 Use the :func:`make_test_instance` class method of the class being replaced by the test instance instead of using this class directly. :param extensions: Pre-configured Extension instances to use instead of loading them from entry points. :type extensions: list of :class:`~stevedore.extension.Extension` :param namespace: The namespace for the entry points. :type namespace: str :param invoke_on_load: Boolean controlling whether to invoke the object returned by the entry point after the driver is loaded. :type invoke_on_load: bool :param invoke_args: Positional arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_args: tuple :param invoke_kwds: Named arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_kwds: dict �testF� c � �� t t | � � � ||||� � || _ t j dt � � d S )Nz=TestExtesionManager has been replaced by make_test_instance())�superr �__init__� extensions�warnings�warn�DeprecationWarning)�selfr � namespace�invoke_on_load�invoke_args�invoke_kwds� __class__s ��9/usr/lib/python3/dist-packages/stevedore/tests/manager.pyr zTestExtensionManager.__init__3 s` �� � �"�D�)�)�2�2�9�3A�3>�3>� 5� 5� 5� %���� �K�� � � � � � c � � g S )Nr )r �args�kwdss r � _load_pluginsz"TestExtensionManager._load_pluginsB s � �� r )�__name__� __module__�__qualname__�__doc__r r � __classcell__)r s @r r r sd �� � � � � �� �8 "� %��� � � � � � �� � � � � � r r )r r � stevedorer �ExtensionManagerr r r r �<module>r"