refactor: check view with test that fails...
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user