Fixture for client manager, that is used by all tests for creating client. :param config: pytestconfig :param transport_factory: TransportFactory to use :param server: Ensure that server is created before client :return: new client manager
(config: Config, transport_factory: TransportFactory, server: SimpleServer)
| 119 | |
| 120 | @pytest.fixture(scope="module") |
| 121 | def client_manager(config: Config, transport_factory: TransportFactory, server: SimpleServer) -> ClientManager: |
| 122 | """ |
| 123 | Fixture for client manager, that is used by all tests for creating client. |
| 124 | :param config: pytestconfig |
| 125 | :param transport_factory: TransportFactory to use |
| 126 | :param server: Ensure that server is created before client |
| 127 | :return: new client manager |
| 128 | """ |
| 129 | if not config.getoption("client"): |
| 130 | pytest.skip("No test's client, skipping.") |
| 131 | else: |
| 132 | time.sleep(0.1) # Add delay to allow server run |
| 133 | return ClientManager(transport_factory.build_transport(False), BasicCodec) |
| 134 | |
| 135 | |
| 136 | @pytest.fixture(scope="module") |
nothing calls this directly
no test coverage detected