U
    ±[Öeê	  ã                   @   s.   d Z ddlZddlmZ G dd„ dejƒZdS )z?TestExtensionManager

Extension manager used only for testing.
é    N)Ú	extensionc                       s2   e Zd ZdZdddi f‡ fdd„	Zdd„ Z‡  ZS )	Ú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                    s,   t t| ƒ ||||¡ || _t dt¡ d S )Nz=TestExtesionManager has been replaced by make_test_instance())Úsuperr   Ú__init__Ú
extensionsÚwarningsÚwarnÚDeprecationWarning)Úselfr   Ú	namespaceZinvoke_on_loadZinvoke_argsZinvoke_kwds©Ú	__class__r   úY/var/www/html/services/stratfitenv/lib/python3.8/site-packages/stevedore/tests/manager.pyr   3   s    ýþzTestExtensionManager.__init__c                 O   s   g S )Nr   )r   ÚargsÚkwdsr   r   r   Ú_load_pluginsB   s    z"TestExtensionManager._load_plugins)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__classcell__r   r   r   r   r      s   ür   )r   r	   Z	stevedorer   ZExtensionManagerr   r   r   r   r   Ú<module>   s   