Update front & back
All checks were successful
Tests / Declarative: Post Actions passed: 14
CI-Multi/pipeline/pr-main This commit looks good

This commit is contained in:
2026-02-22 13:16:54 +01:00
parent 6660035fa3
commit 9297bed50e
4 changed files with 66 additions and 9 deletions

View File

@@ -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):