userver: testsuite.daemons.pytest_plugin.CreateServiceClientFixture Class Reference
Loading...
Searching...
No Matches
testsuite.daemons.pytest_plugin.CreateServiceClientFixture Class Reference

Detailed Description

Creates service client instance.

Example:

.. code-block:: python

def my_client(create_service_client):
    return create_service_client('http://localhost:9999/')

Definition at line 208 of file pytest_plugin.py.

Inheritance diagram for testsuite.daemons.pytest_plugin.CreateServiceClientFixture:

Public Member Functions

 __call__ (self, str base_url, *, client_class=service_client.Client, **kwargs)
 :param base_url: base url for http client :param client_class: client class to use :returns: client_class instance

Member Function Documentation

◆ __call__()

testsuite.daemons.pytest_plugin.CreateServiceClientFixture.__call__ ( self,
str base_url,
* ,
client_class = service_client.Client,
** kwargs )

:param base_url: base url for http client :param client_class: client class to use :returns: client_class instance

Definition at line 219 of file pytest_plugin.py.


The documentation for this class was generated from the following file: