mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
wip
This commit is contained in:
@ -47,33 +47,31 @@ def connected_client_gui_obj(gui_id, bec_client_lib):
|
|||||||
gui.kill_server()
|
gui.kill_server()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
# @pytest.fixture(scope="session")
|
||||||
def bec_client_lib_with_demo_config_session(
|
# def bec_client_lib_with_demo_config(bec_redis_fixture, bec_services_config_file_path, bec_servers):
|
||||||
bec_redis_fixture, bec_services_config_file_path, bec_servers
|
# """Session-scoped fixture to create a BECClient object with a demo configuration."""
|
||||||
):
|
# config = ServiceConfig(bec_services_config_file_path)
|
||||||
"""Session-scoped fixture to create a BECClient object with a demo configuration."""
|
# bec = BECClient(config, RedisConnector, forced=True, wait_for_server=True)
|
||||||
config = ServiceConfig(bec_services_config_file_path)
|
# bec.start()
|
||||||
bec = BECClient(config, RedisConnector, forced=True, wait_for_server=True)
|
# bec.config.load_demo_config()
|
||||||
bec.start()
|
# try:
|
||||||
bec.config.load_demo_config()
|
# yield bec
|
||||||
try:
|
# finally:
|
||||||
yield bec
|
# bec.shutdown()
|
||||||
finally:
|
|
||||||
bec.shutdown()
|
|
||||||
|
# @pytest.fixture(scope="session")
|
||||||
|
# def bec_client_lib_session(bec_client_lib_with_demo_config_session):
|
||||||
|
# """Session-scoped fixture to create a BECClient object with a demo configuration."""
|
||||||
|
# bec = bec_client_lib_with_demo_config_session
|
||||||
|
# bec.queue.request_queue_reset()
|
||||||
|
# bec.queue.request_scan_continuation()
|
||||||
|
# wait_for_empty_queue(bec)
|
||||||
|
# yield bec
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def bec_client_lib_session(bec_client_lib_with_demo_config_session):
|
def connected_gui_and_bec_with_scope_session(bec_client_lib):
|
||||||
"""Session-scoped fixture to create a BECClient object with a demo configuration."""
|
|
||||||
bec = bec_client_lib_with_demo_config_session
|
|
||||||
bec.queue.request_queue_reset()
|
|
||||||
bec.queue.request_scan_continuation()
|
|
||||||
wait_for_empty_queue(bec)
|
|
||||||
yield bec
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
|
||||||
def connected_gui_and_bec_with_scope_session(bec_client_lib_session):
|
|
||||||
"""
|
"""
|
||||||
Fixture to create a new BECGuiClient object and start a server in the background.
|
Fixture to create a new BECGuiClient object and start a server in the background.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user