mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-08 17:58:05 +02:00
fix: static device test should use yaml_load
This commit is contained in:
@ -5,7 +5,7 @@ import traceback
|
|||||||
from io import TextIOWrapper
|
from io import TextIOWrapper
|
||||||
|
|
||||||
import ophyd
|
import ophyd
|
||||||
import yaml
|
from bec_lib.bec_yaml_loader import yaml_load
|
||||||
from bec_lib.scibec_validator import SciBecValidator
|
from bec_lib.scibec_validator import SciBecValidator
|
||||||
|
|
||||||
from ophyd_devices.utils.bec_device_base import BECDevice
|
from ophyd_devices.utils.bec_device_base import BECDevice
|
||||||
@ -44,10 +44,7 @@ class StaticDeviceTest:
|
|||||||
Returns:
|
Returns:
|
||||||
dict: config content
|
dict: config content
|
||||||
"""
|
"""
|
||||||
content = None
|
content = yaml_load(config)
|
||||||
with open(config, "r", encoding="utf-8") as file:
|
|
||||||
file_content = file.read()
|
|
||||||
content = yaml.safe_load(file_content)
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def _check_all_signals_of_device(self, name: str, device: ophyd.Device) -> None:
|
def _check_all_signals_of_device(self, name: str, device: ophyd.Device) -> None:
|
||||||
|
Reference in New Issue
Block a user