test/builder: ensure failed builds are not tagged

Since for a failed task, the build id is not returned, we check
that no tags exist at all (for any build).
This commit is contained in:
Christian Kellner 2020-09-25 13:52:46 +02:00 committed by Tom Gundersen
parent fb9c6d9777
commit e9e23b63e5

View file

@ -489,6 +489,8 @@ class TestBuilderPlugin(PluginTest):
handler.handler(*args)
self.uploads.assert_upload("compose-request.json")
# build must not have been tagged
self.assertEqual(len(session.host.tags), 0)
@httpretty.activate
def test_cli_compose_success(self):