| 1 |
import typing as t |
| 2 |
|
| 3 |
import pytest |
| 4 |
|
| 5 |
import globus_sdk |
| 6 |
|
| 7 |
|
| 8 |
@pytest.fixture |
| 9 |
def flows_client(): |
| 10 |
client = globus_sdk.FlowsClient() |
| 11 |
with client.retry_config.tune(max_retries=0): |
| 12 |
yield client |
| 13 |
|
| 14 |
|
| 15 |
@pytest.fixture |
| 16 |
def specific_flow_client_class() -> t.Type[globus_sdk.SpecificFlowClient]: |
| 17 |
class CustomSpecificFlowClient(globus_sdk.SpecificFlowClient): |
| 18 |
def __init__(self, **kwargs) -> None: |
| 19 |
super().__init__(**kwargs) |
| 20 |
self.retry_config.max_retries = 0 |
| 21 |
|
| 22 |
return CustomSpecificFlowClient |