Update front & back
This commit is contained in:
@@ -61,6 +61,15 @@ def test_build_history(monkeypatch):
|
||||
"timestamp": 1719992400000,
|
||||
"duration": 75000,
|
||||
"url": "http://jenkins.local/job/demo/205",
|
||||
"actions": [
|
||||
{
|
||||
"causes": [
|
||||
{
|
||||
"shortDescription": "Triggered by Merge pull request #37",
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"changeSets": [
|
||||
{
|
||||
"items": [
|
||||
@@ -79,6 +88,7 @@ def test_build_history(monkeypatch):
|
||||
"timestamp": 1719988800000,
|
||||
"duration": 1500,
|
||||
"url": "http://jenkins.local/job/demo/204",
|
||||
"actions": [],
|
||||
"changeSets": [],
|
||||
},
|
||||
]
|
||||
@@ -101,12 +111,14 @@ def test_build_history(monkeypatch):
|
||||
assert first["commits"] == [
|
||||
{"commit": "9ac3f91", "message": "Anade la API de Jenkins", "author": "Dev One"}
|
||||
]
|
||||
assert first["trigger"] == "Triggered by Merge pull request #37"
|
||||
|
||||
second = builds[1]
|
||||
assert second["number"] == 204
|
||||
assert second["status"] == "running"
|
||||
assert second["duration_seconds"] == 1
|
||||
assert second["commits"] == []
|
||||
assert second["trigger"] == ""
|
||||
|
||||
|
||||
def test_build_history_error_returns_empty(monkeypatch):
|
||||
|
||||
Reference in New Issue
Block a user