refactor: fixed pragma statement (hopefully)

This commit is contained in:
2024-01-26 17:44:01 +01:00
parent 97e102fddb
commit 257a316f6e

View File

@ -18,8 +18,7 @@ except ImportError:
device_manager = None
class StaticDeviceTest:
# pragma: no cover
class StaticDeviceTest: # pragma: no cover
"""Class to perform tests on an ophyd device config file."""
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:
device_config_test = StaticDeviceTest(clargs.config, output_file=file)
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()