bec-ipython-client 3.170.0__tar.gz → 3.170.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/PKG-INFO +1 -1
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/pyproject.toml +1 -1
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_scans_e2e.py +35 -1
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/.gitignore +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/beamline_mixin.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/bec_magics.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/bec_startup.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/device_progress.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/live_table.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/move_device.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/utils.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/main.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/__init__.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/prettytable.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/progressbar.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/signals.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/demo.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/conftest.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_beamline_mixins.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_bec_client.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_device_progress.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_ipython_live_updates.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_live_table.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_move_callback.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_pretty_table.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_signals.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/conftest.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/_ensure_requirements_container.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_acl_e2e.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_actors_e2e.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_procedures_e2e.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
- {bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
|
@@ -17,7 +17,7 @@ import pytest
|
|
|
17
17
|
from bec_ipython_client.callbacks.utils import ScanRequestError
|
|
18
18
|
from bec_lib import configs
|
|
19
19
|
from bec_lib.alarm_handler import AlarmBase
|
|
20
|
-
from bec_lib.bec_errors import ScanAbortion, ScanInterruption
|
|
20
|
+
from bec_lib.bec_errors import DeviceConfigError, ScanAbortion, ScanInterruption
|
|
21
21
|
from bec_lib.endpoints import MessageEndpoints
|
|
22
22
|
from bec_lib.logger import bec_logger
|
|
23
23
|
from bec_lib.scan_repeat import scan_repeat
|
|
@@ -689,6 +689,40 @@ def test_disabled_device_raises_scan_request_error(bec_ipython_client_fixture):
|
|
|
689
689
|
scans.line_scan(dev.samx, 0, 1, steps=10, relative=False)
|
|
690
690
|
|
|
691
691
|
|
|
692
|
+
@pytest.mark.timeout(100)
|
|
693
|
+
def test_unreachable_device_stays_disabled_when_enabled_twice(bec_ipython_client_fixture):
|
|
694
|
+
bec = bec_ipython_client_fixture
|
|
695
|
+
bec.metadata.update({"unit_test": "test_unreachable_device_stays_disabled_when_enabled_twice"})
|
|
696
|
+
dev = bec.device_manager.devices
|
|
697
|
+
device_name = "unreachable_epics_motor"
|
|
698
|
+
config = {
|
|
699
|
+
device_name: {
|
|
700
|
+
"deviceClass": "ophyd.EpicsMotor",
|
|
701
|
+
"deviceConfig": {"prefix": "BEC:E2E:INTENTIONALLY_UNREACHABLE:"},
|
|
702
|
+
"connectionTimeout": 0.1,
|
|
703
|
+
"readoutPriority": "baseline",
|
|
704
|
+
"enabled": True,
|
|
705
|
+
"readOnly": False,
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
try:
|
|
710
|
+
with pytest.raises(DeviceConfigError):
|
|
711
|
+
bec.device_manager.config_helper.send_config_request(action="add", config=config)
|
|
712
|
+
device = dev[device_name]
|
|
713
|
+
assert device.enabled is False
|
|
714
|
+
|
|
715
|
+
for _ in range(2):
|
|
716
|
+
with pytest.raises(DeviceConfigError):
|
|
717
|
+
device.enabled = True
|
|
718
|
+
assert device.enabled is False
|
|
719
|
+
finally:
|
|
720
|
+
if device_name in dev:
|
|
721
|
+
bec.device_manager.config_helper.send_config_request(
|
|
722
|
+
action="remove", config={device_name: {}}
|
|
723
|
+
)
|
|
724
|
+
|
|
725
|
+
|
|
692
726
|
# @pytest.fixture(scope="function")
|
|
693
727
|
@pytest.mark.timeout(100)
|
|
694
728
|
@pytest.mark.parametrize("abort_on_ctrl_c", [True, False])
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/beamline_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/live_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/callbacks/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/SLS/__init__.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/SLS/sls_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/bec_ipython_client/plugins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_beamline_mixins.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_bec_client.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_device_progress.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_live_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_move_callback.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_pretty_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/client_tests/test_signals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_actors_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_procedures_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_scans_lib_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.170.0 → bec_ipython_client-3.170.1}/tests/end-2-end/test_scans_v4_lib_e2e.py
RENAMED
|
File without changes
|