bec-ipython-client 3.165.1__tar.gz → 3.166.0__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.165.1 → bec_ipython_client-3.166.0}/PKG-INFO +1 -1
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/bec_magics.py +5 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/pyproject.toml +1 -1
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_bec_client.py +11 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/.gitignore +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/beamline_mixin.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/bec_startup.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/device_progress.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/live_table.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/move_device.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/utils.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/main.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/__init__.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/prettytable.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/progressbar.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/signals.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/demo.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/conftest.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_beamline_mixins.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_device_progress.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_ipython_live_updates.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_live_table.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_move_callback.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_pretty_table.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_signals.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/conftest.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/_ensure_requirements_container.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_acl_e2e.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_actors_e2e.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_procedures_e2e.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_scans_e2e.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
- {bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
|
@@ -56,6 +56,11 @@ class BECMagics(Magics):
|
|
|
56
56
|
"Request a scan halt, i.e. abort without cleanup."
|
|
57
57
|
return self.client.queue.request_scan_halt()
|
|
58
58
|
|
|
59
|
+
@line_magic
|
|
60
|
+
def stop(self, line):
|
|
61
|
+
"Stop all devices"
|
|
62
|
+
return self.client._request_stop_all_devices()
|
|
63
|
+
|
|
59
64
|
@line_magic
|
|
60
65
|
def server_restart(self, line):
|
|
61
66
|
"Request a server restart"
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_bec_client.py
RENAMED
|
@@ -7,6 +7,7 @@ import pytest
|
|
|
7
7
|
import redis.exceptions
|
|
8
8
|
|
|
9
9
|
from bec_ipython_client import BECIPythonClient, main
|
|
10
|
+
from bec_ipython_client.bec_magics import BECMagics
|
|
10
11
|
from bec_lib import messages
|
|
11
12
|
from bec_lib.alarm_handler import AlarmBase, AlarmHandler, Alarms
|
|
12
13
|
from bec_lib.bec_errors import DeviceConfigError
|
|
@@ -124,6 +125,16 @@ def test_ipython_device_helper_func_inspect(bec_ipython_shell):
|
|
|
124
125
|
shell.run_cell("dev.get_devices_with_tags?")
|
|
125
126
|
|
|
126
127
|
|
|
128
|
+
def test_stop_magic_requests_stop_all_devices(bec_ipython_shell, bec_client_mock):
|
|
129
|
+
shell, _ = bec_ipython_shell
|
|
130
|
+
magics = BECMagics(shell, bec_client_mock)
|
|
131
|
+
|
|
132
|
+
with mock.patch.object(bec_client_mock, "_request_stop_all_devices") as request_stop:
|
|
133
|
+
magics.stop("")
|
|
134
|
+
|
|
135
|
+
request_stop.assert_called_once_with()
|
|
136
|
+
|
|
137
|
+
|
|
127
138
|
@pytest.fixture
|
|
128
139
|
def service_config():
|
|
129
140
|
return ServiceConfig(
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/beamline_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/callbacks/live_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/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.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/SLS/__init__.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/bec_ipython_client/plugins/SLS/sls_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/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.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_beamline_mixins.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_device_progress.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_live_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_move_callback.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_pretty_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/client_tests/test_signals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_actors_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_procedures_e2e.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_scans_lib_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.165.1 → bec_ipython_client-3.166.0}/tests/end-2-end/test_scans_v4_lib_e2e.py
RENAMED
|
File without changes
|