From 344d20e4e63260e671118375ddfa811937b52c0c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:41:18 +0000 Subject: [PATCH] test: increase coverage for app/views/pipelines.py to 100% Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- tests/test_views_pipelines.py | 105 ++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 tests/test_views_pipelines.py diff --git a/tests/test_views_pipelines.py b/tests/test_views_pipelines.py new file mode 100644 index 00000000..1c9f194f --- /dev/null +++ b/tests/test_views_pipelines.py @@ -0,0 +1,105 @@ +"""Tests for app/views/pipelines.py module. + +Covers the pipelines management UI page. +""" + +from unittest.mock import patch + +import pytest + + +@pytest.mark.integration +class TestPipelinesView: + """Integration tests for the /pipelines view route.""" + + def test_pipelines_page_returns_200(self, client): + """GET /pipelines returns HTTP 200.""" + response = client.get("/pipelines") + assert response.status_code == 200 + + def test_pipelines_page_renders_html(self, client): + """GET /pipelines returns HTML content with a proper html tag.""" + response = client.get("/pipelines") + assert response.status_code == 200 + assert b"