refactor: check view with test that fails...
Some checks failed
CI for debye_bec / test (pull_request) Failing after 1m7s
CI for debye_bec / test (push) Failing after 1m9s

This commit is contained in:
2025-09-23 23:31:54 -05:00
parent c4662e1739
commit 6916bc0bbd
2 changed files with 2 additions and 1 deletions

View File

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

View File

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