Add way to hide file-save output for Presenter / ChartMaker

This commit is contained in:
Michael Mintz 2024-03-14 14:13:24 -04:00
parent 0ea82ce275
commit f18213e44c
1 changed files with 5 additions and 2 deletions

View File

@ -159,6 +159,7 @@ class BaseCase(unittest.TestCase):
self._language = "English"
self._presentation_slides = {}
self._presentation_transition = {}
self._output_file_saves = True # For Presenter / ChartMaker
self._rec_overrides_switch = True # Recorder-Mode uses set_c vs switch
self._sb_test_identifier = None
self._html_report_extra = [] # (Used by pytest_plugin.py)
@ -11187,7 +11188,8 @@ class BaseCase(unittest.TestCase):
out_file = codecs.open(file_path, "w+", encoding="utf-8")
out_file.writelines(the_html)
out_file.close()
print("\n>>> [%s] was saved!\n" % file_path)
if self._output_file_saves:
print("\n>>> [%s] was saved!\n" % file_path)
return file_path
def begin_presentation(
@ -11885,7 +11887,8 @@ class BaseCase(unittest.TestCase):
out_file = codecs.open(file_path, "w+", encoding="utf-8")
out_file.writelines(the_html)
out_file.close()
print("\n>>> [%s] was saved!" % file_path)
if self._output_file_saves:
print("\n>>> [%s] was saved!" % file_path)
return file_path
def display_chart(self, chart_name=None, filename=None, interval=0):