From 6916bc0bbd840e1f964b298bd8496edbd506d754 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 23 Sep 2025 23:31:54 -0500 Subject: [PATCH] refactor: check view with test that fails... --- .gitea/workflows/ci.yml | 2 +- tests/tests_devices/test_cameras.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7623d33..2d461cd 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: OPHYD_DEVICES_BRANCH: "${{ github.event.inputs.OPHYD_DEVICES_BRANCH || 'main' }}" BEC_PLUGIN_REPO_BRANCH: "${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.BEC_PLUGIN_REPO_BRANCH || 'main') || github.head_ref || github.ref_name }}" PYTHON_VERSION: "${{ github.event.inputs.PYTHON_VERSION || '3.11' }}" - BEC_PLUGIN_REPO_URL: "https://gitea.psi.ch/bec/debye_bec.git" + BEC_PLUGIN_REPO_URL: "https://gitea.psi.ch/bec/${{ github.event.repository.name }}.git" APT_PACKAGES: "libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1" - name: Checkout BEC Plugin Repository diff --git a/tests/tests_devices/test_cameras.py b/tests/tests_devices/test_cameras.py index 7fcb078..87d0587 100644 --- a/tests/tests_devices/test_cameras.py +++ b/tests/tests_devices/test_cameras.py @@ -58,6 +58,7 @@ def mock_prosilica(): def test_prosilica_init(mock_prosilica): """Test the initialization of the Prosilica camera device.""" + raise ValueError("Test error") assert mock_prosilica.name == "cam" assert mock_prosilica.prefix == "test:" assert isinstance(mock_prosilica.cam1, ProsilicaDetectorCam)