File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1818class TestBoundAction :
1919 @pytest .fixture ()
2020 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-
2521 return BoundAction (
2622 client = client .actions ,
2723 data = dict (id = 14 , status = Action .STATUS_RUNNING ),
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ def request_mock() -> mock.MagicMock:
2222
2323@pytest .fixture ()
2424def client (request_mock ) -> Client :
25- c = Client (token = "TOKEN" )
25+ c = Client (
26+ token = "TOKEN" ,
27+ # Speed up tests that run `wait_until_finished`
28+ poll_interval = 0.0 ,
29+ poll_max_retries = 3 ,
30+ )
2631 c ._client .request = request_mock
2732 return c
2833
You can’t perform that action at this time.
0 commit comments