fix: pxi and pxiii tests shouldn't work yet
CI / lint (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 45s
CI / test (3.13) (pull_request) Successful in 45s
CI / test (3.11) (pull_request) Successful in 53s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 51s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 51s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 54s
CI / test-with-coverage (pull_request) Successful in 56s
CI / lint (push) Canceled after 15s
CI / test (3.11) (push) Canceled after 0s
CI / test (3.12) (push) Canceled after 0s
CI / test (3.13) (push) Canceled after 0s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 0s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 0s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 0s
CI / test-with-coverage (push) Canceled after 0s
Build and Publish / release (push) Successful in 12s

This commit was merged in pull request #120.
This commit is contained in:
perl_d committed 2026-07-31 12:23:20 +02:00
1 parent b492face87
commit ba68b6b233
1 file changed
+6 -4
+6 -4
View File
@@ -26,8 +26,9 @@ def test_simulated_dispatch_can_be_instantiated():
@pytest.mark.skipif(importlib.util.find_spec("pxi_bec") is None, reason="run only for pxi flavour")
def test_pxi_dispatch_can_be_instantiated():
with patch.dict("os.environ", {"BEAMLINE": "X06SA"}):
dispatch = get_beamline_dispatch()
assert isinstance(dispatch, X06saDispatch)
with pytest.raises(TypeError) as e:
_ = get_beamline_dispatch()
assert e.match("Can't instantiate abstract class")
@pytest.mark.skipif(
@@ -44,5 +45,6 @@ def test_pxii_dispatch_can_be_instantiated():
)
def test_pxiii_dispatch_can_be_instantiated():
with patch.dict("os.environ", {"BEAMLINE": "X06DA"}):
dispatch = get_beamline_dispatch()
assert isinstance(dispatch, X06daDispatch)
with pytest.raises(TypeError) as e:
_ = get_beamline_dispatch()
assert e.match("Can't instantiate abstract class")