test_base: Fix whitespace

Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
matthew
2021-12-03 08:09:49 -08:00
parent 5674d8f875
commit b44e5652dc

View File

@@ -27,8 +27,8 @@ class TestBase:
def build(self):
# - create station profile
# - create 2 criteria [ex: not down, continually_receiving] object (for ex)
# - station_profile.add_criteria([not_down, continually_receiving, etc_3])
# design - inversion of control
# - station_profile.add_criteria([not_down, continually_receiving, etc_3])
# design - inversion of control
if self.profiles:
for profile in self.profiles:
@@ -38,31 +38,30 @@ class TestBase:
if self.profiles:
for profile in self.profiles:
profile.check_passes()
def run_duration(self, monitor_enabled= False):
#here check if monitor is enabled or not, then run loop accordingly
def run_duration(self, monitor_enabled=False):
# here check if monitor is enabled or not, then run loop accordingly
self.check_for_halt()
if self.profiles:
if monitor_enabled:
for profile in self.profiles:
profile.monitor_record() #check for halt in monitor record?
profile.monitor_record() # check for halt in monitor record?
for profile in self.profiles:
profile.grade()
if self.exit_on_fail:
if self.fails():
self.exit_fail()
self.check_for_quit()
def report(self, enabled= False):
#here check if monitor is enabled or not, then run loop accordingly with lfreporting
def report(self, enabled=False):
# here check if monitor is enabled or not, then run loop accordingly with lfreporting
pass
def begin(self):
self.pre_clean_up()
self.build()
self.start()
self.start()
self.run_duration()
self.stop()
self.stop()
self.report()
self.clean_up()
self.clean_up()