test/builder: ensure a successful build is tagged

Use the new MockHost class and its `tags` property to ensure that
a successful build is indeed tagged.
This commit is contained in:
Christian Kellner 2020-09-25 13:51:58 +02:00 committed by Tom Gundersen
parent 20abf9a142
commit fb9c6d9777

View file

@ -457,6 +457,9 @@ class TestBuilderPlugin(PluginTest):
self.assertEqual(have, repos)
self.uploads.assert_upload("compose-request.json")
build_id = res["koji"]["build"]
# build should have been tagged
self.assertIn(build_id, session.host.tags)
@httpretty.activate
def test_compose_failure(self):