tests: naming of variables in test_policy:apply_policy is highly confusing

ubuntu/rebased
Paul Gevers 6 years ago
parent b839e1a459
commit 32ea0ccb70
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -53,8 +53,8 @@ def create_policy_objects(source_name, target_version, source_version):
) )
def apply_policy(policy, expected_verdict, src_name, *, suite='unstable', source_version='1.0', target_version='2.0'): def apply_policy(policy, expected_verdict, src_name, *, suite='unstable', target_version='1.0', source_version='2.0'):
src_t, src_u, excuse, policy_info = create_policy_objects(src_name, source_version, target_version) src_t, src_u, excuse, policy_info = create_policy_objects(src_name, target_version, source_version)
suite_info = policy.suite_info suite_info = policy.suite_info
suite_info.target_suite.sources[src_name] = src_t suite_info.target_suite.sources[src_name] = src_t
suite_info[suite].sources[src_name] = src_u suite_info[suite].sources[src_name] = src_u

Loading…
Cancel
Save