mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-06 17:24:48 +02:00
refactor: fixed pragma statement (hopefully)
This commit is contained in:
@ -18,8 +18,7 @@ except ImportError:
|
|||||||
device_manager = None
|
device_manager = None
|
||||||
|
|
||||||
|
|
||||||
class StaticDeviceTest:
|
class StaticDeviceTest: # pragma: no cover
|
||||||
# pragma: no cover
|
|
||||||
"""Class to perform tests on an ophyd device config file."""
|
"""Class to perform tests on an ophyd device config file."""
|
||||||
|
|
||||||
def __init__(self, config: str, output_file: TextIOWrapper) -> None:
|
def __init__(self, config: str, output_file: TextIOWrapper) -> None:
|
||||||
@ -292,3 +291,10 @@ def launch() -> None:
|
|||||||
with open("./report.txt", "w", encoding="utf-8") as file:
|
with open("./report.txt", "w", encoding="utf-8") as file:
|
||||||
device_config_test = StaticDeviceTest(clargs.config, output_file=file)
|
device_config_test = StaticDeviceTest(clargs.config, output_file=file)
|
||||||
device_config_test.run(clargs.connect)
|
device_config_test.run(clargs.connect)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.argv = ["", "--config", "../bec/bec_lib/bec_lib/configs/demo_config.yaml", "--connect"]
|
||||||
|
launch()
|
||||||
|
Reference in New Issue
Block a user