diff --git a/test/unit/app/jobs/test_rule_helper.py b/test/unit/app/jobs/test_rule_helper.py index 1eea401e4554..1d1197a0dc78 100644 --- a/test/unit/app/jobs/test_rule_helper.py +++ b/test/unit/app/jobs/test_rule_helper.py @@ -56,9 +56,8 @@ def test_job_count(): def __assert_job_count_is(expected_count, rule_helper, **kwds): - if expected_count != (acutal_count := rule_helper.job_count(**kwds)): - template = "Expected job count %d, actual job count %s for params %s" - raise AssertionError(template % (expected_count, acutal_count, kwds)) + if expected_count != (actual_count := rule_helper.job_count(**kwds)): + raise AssertionError(f"Expected job count {expected_count}, actual job count {actual_count} for params {kwds}") def __setup_fixtures(app):