Sha256: ea89f0a270359fc50a716c856361f25ae08c50d9a36cef34ca65457720d4713c
Contents?: true
Size: 1.25 KB
Versions: 6
Compression:
Stored size: 1.25 KB
Contents
from openc3.script.suite import Group, Suite load_utility("INST2/procedures/utilities/clear.py") class ExampleGroup(Group): def setup(self): print("Setup") def script_run_method_with_long_name(self): print( f"Running {Group.current_suite()}:{Group.current_group()}:{Group.current_script()}" ) Group.print("This test verifies requirement 1") raise RuntimeError("error") print("continue past raise") # NOSONAR def script_2(self): print( f"Running {Group.current_suite()}:{Group.current_group()}:{Group.current_script()}" ) Group.print("This test verifies requirement 2") self.helper() wait(2) def script_3(self): print( f"Running {Group.current_suite()}:{Group.current_group()}:{Group.current_script()}" ) raise SkipScript def helper(self): if openc3.script.RUNNING_SCRIPT and openc3.script.RUNNING_SCRIPT.manual: answer = ask("Are you sure?") else: answer = "y" def teardown(self): print("teardown") class MySuite(Suite): def __init__(self): super().__init__() self.add_group(ExampleGroup) print("Running") MySuite().run()
Version data entries
6 entries across 6 versions & 1 rubygems