Skip to content

Commit cc8ea41

Browse files
Update unit_tests/sources/declarative/async_job/test_job_tracker.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 4477538 commit cc8ea41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unit_tests/sources/declarative/async_job/test_job_tracker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ def test_given_limit_is_less_than_1_when_init_then_set_to_1(limit: int):
4848

4949

5050
@pytest.mark.parametrize(
51-
("limit", "config"),
51+
("limit", "config", "expected_limit"),
5252
[
53-
("2", {}),
54-
("{{ config['max_concurrent_async_job_count'] }}", {"max_concurrent_async_job_count": 2}),
53+
("2", {}, 2),
54+
("{{ config['max_concurrent_async_job_count'] }}", {"max_concurrent_async_job_count": 2}, 2),
5555
],
5656
)
57-
def test_given_limit_is_string_when_init_then_set_to_1(limit, config):
57+
def test_given_limit_as_string_when_init_then_interpolate_correctly(limit, config, expected_limit):
5858
tracker = JobTracker(limit, config)
59-
assert tracker._limit == 1
59+
assert tracker._limit == expected_limit
6060

6161

6262
def test_given_interpolated_limit_and_empty_config_when_init_then_set_to_1():

0 commit comments

Comments
 (0)