test/builder: ability to set compose status
Can be used to mock a failing build, but setting the overall status to "failure".
This commit is contained in:
parent
2dbeab79a5
commit
c70ec02fba
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ class MockComposer:
|
|||
self.composes = {}
|
||||
self.errors = []
|
||||
self.build_id = 1
|
||||
self.status = "success"
|
||||
|
||||
def httpretty_regsiter(self):
|
||||
httpretty.register_uri(
|
||||
|
|
@ -62,7 +63,7 @@ class MockComposer:
|
|||
self.composes[compose_id] = {
|
||||
"request": js,
|
||||
"result": compose,
|
||||
"status": "success",
|
||||
"status": self.status,
|
||||
}
|
||||
|
||||
httpretty.register_uri(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue