We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7667d6 commit 90638b1Copy full SHA for 90638b1
2 files changed
tests/unit/actions/test_client.py
@@ -18,10 +18,6 @@
18
class TestBoundAction:
19
@pytest.fixture()
20
def bound_running_action(self, client: Client):
21
- # Speed up tests that run `wait_until_finished`
22
- client._poll_interval_func = lambda _: 0.0
23
- client._poll_max_retries = 3
24
-
25
return BoundAction(
26
client=client.actions,
27
data=dict(id=14, status=Action.STATUS_RUNNING),
tests/unit/conftest.py
@@ -22,7 +22,12 @@ def request_mock() -> mock.MagicMock:
def client(request_mock) -> Client:
- c = Client(token="TOKEN")
+ c = Client(
+ token="TOKEN",
+ # Speed up tests that use `_poll_interval_func`
28
+ poll_interval=0.0,
29
+ poll_max_retries=3,
30
+ )
31
c._client.request = request_mock
32
return c
33
0 commit comments