We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb95d1b commit d98b219Copy full SHA for d98b219
tests/unit/scheduler/test_strategies.py
@@ -335,9 +335,10 @@ def test_string_representation(
335
self, valid_instances: tuple[ThroughputStrategy, dict]
336
):
337
"""Test __str__ method for ThroughputStrategy."""
338
- instance, _ = valid_instances
+ instance, constructor_args = valid_instances
339
+ max_concurrency = constructor_args.get("max_concurrency")
340
result = str(instance)
- assert result == "throughput"
341
+ assert result == f"throughput@{max_concurrency or 'unlimited'}"
342
343
@pytest.mark.smoke
344
def test_marshalling(self, valid_instances: tuple[ThroughputStrategy, dict]):
0 commit comments