Skip to content

Commit

Permalink
Fix unittest
Browse files Browse the repository at this point in the history
Depends-On: 870
  • Loading branch information
abadger committed Sep 19, 2024
1 parent c2b80ac commit 78563bb
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ def consume_signed_rpms_mocked(*models):
tmpdir.join('to_install').write('a\n b\n c \n\n\nc\na\nc\nb')
tmpdir.join('to_keep').write('a\n b\n c \n\n\nc\na\nc\nb')
tmpdir.join('to_remove').write('a\n b\n c \n\n\nc\na\nc\nb')
m = load_tasks(tmpdir.strpath, logging)
config = {
'transaction': {
'to_install': tmpdir.join('to_install').strpath,
'to_keep': tmpdir.join('to_keep').strpath,
'to_remove': tmpdir.join('to_remove').strpath,
}
}

m = load_tasks(config, logging)
# c is not going to be in "to_install" as it is already installed
assert set(m.to_install) == set(['a', 'b'])
assert set(m.to_keep) == set(['a', 'b', 'c'])
Expand Down

0 comments on commit 78563bb

Please sign in to comment.