Skip to content

Commit 76872b1

Browse files
committed
Fix parameterized.expand for trial-olddeps
1 parent fa20174 commit 76872b1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/rest/client/test_delayed_events.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_update_delayed_event_without_match(
210210
channel = self._update_delayed_event("abc", action, action_in_path)
211211
self.assertEqual(HTTPStatus.NOT_FOUND, channel.code, channel.result)
212212

213-
@parameterized.expand((True, False))
213+
@parameterized.expand(((True,), (False,)))
214214
def test_cancel_delayed_state_event(self, action_in_path: bool) -> None:
215215
state_key = "to_never_send"
216216

@@ -254,7 +254,7 @@ def test_cancel_delayed_state_event(self, action_in_path: bool) -> None:
254254
expect_code=HTTPStatus.NOT_FOUND,
255255
)
256256

257-
@parameterized.expand((True, False))
257+
@parameterized.expand(((True,), (False,)))
258258
@unittest.override_config(
259259
{"rc_delayed_event_mgmt": {"per_second": 0.5, "burst_count": 1}}
260260
)
@@ -278,7 +278,7 @@ def test_cancel_delayed_event_ratelimit(self, action_in_path: bool) -> None:
278278
channel = self._update_delayed_event(delay_ids.pop(0), "cancel", action_in_path)
279279
self.assertEqual(HTTPStatus.TOO_MANY_REQUESTS, channel.code, channel.result)
280280

281-
@parameterized.expand((True, False))
281+
@parameterized.expand(((True,), (False,)))
282282
def test_send_delayed_state_event(self, action_in_path: bool) -> None:
283283
state_key = "to_send_on_request"
284284

@@ -320,7 +320,7 @@ def test_send_delayed_state_event(self, action_in_path: bool) -> None:
320320
)
321321
self.assertEqual(setter_expected, content.get(setter_key), content)
322322

323-
@parameterized.expand((True, False))
323+
@parameterized.expand(((True,), (False,)))
324324
@unittest.override_config({"rc_message": {"per_second": 2.5, "burst_count": 3}})
325325
def test_send_delayed_event_ratelimit(self, action_in_path: bool) -> None:
326326
delay_ids = []
@@ -342,7 +342,7 @@ def test_send_delayed_event_ratelimit(self, action_in_path: bool) -> None:
342342
channel = self._update_delayed_event(delay_ids.pop(0), "send", action_in_path)
343343
self.assertEqual(HTTPStatus.TOO_MANY_REQUESTS, channel.code, channel.result)
344344

345-
@parameterized.expand((True, False))
345+
@parameterized.expand(((True,), (False,)))
346346
def test_restart_delayed_state_event(self, action_in_path: bool) -> None:
347347
state_key = "to_send_on_restarted_timeout"
348348

@@ -399,7 +399,7 @@ def test_restart_delayed_state_event(self, action_in_path: bool) -> None:
399399
)
400400
self.assertEqual(setter_expected, content.get(setter_key), content)
401401

402-
@parameterized.expand((True, False))
402+
@parameterized.expand(((True,), (False,)))
403403
@unittest.override_config(
404404
{"rc_delayed_event_mgmt": {"per_second": 0.5, "burst_count": 1}}
405405
)

0 commit comments

Comments
 (0)