@@ -989,7 +989,7 @@ def dashboard_pre_processing():
989989def _create_dashboard_assets_ ():
990990 import codecs
991991 from seleniumbase .js_code .live_js import live_js
992- from seleniumbase .core .style_sheet import pytest_style
992+ from seleniumbase .core .style_sheet import get_pytest_style
993993
994994 abs_path = os .path .abspath ("." )
995995 assets_folder = os .path .join (abs_path , "assets" )
@@ -1001,11 +1001,11 @@ def _create_dashboard_assets_():
10011001 existing_pytest_style = None
10021002 with open (pytest_style_css , "r" ) as f :
10031003 existing_pytest_style = f .read ()
1004- if existing_pytest_style == pytest_style :
1004+ if existing_pytest_style == get_pytest_style () :
10051005 add_pytest_style_css = False
10061006 if add_pytest_style_css :
10071007 out_file = codecs .open (pytest_style_css , "w+" , encoding = "utf-8" )
1008- out_file .writelines (pytest_style )
1008+ out_file .writelines (get_pytest_style () )
10091009 out_file .close ()
10101010 live_js_file = os .path .join (assets_folder , "live.js" )
10111011 add_live_js_file = True
@@ -1082,8 +1082,8 @@ def _perform_behave_unconfigure_():
10821082 )
10831083 find_it_3 = '<td class="col-result">Untested</td>'
10841084 swap_with_3 = '<td class="col-result">Unreported</td>'
1085- find_it_4 = 'href="%s"' % constants .Dashboard .DASH_PIE_PNG_1
1086- swap_with_4 = 'href="%s"' % constants .Dashboard .DASH_PIE_PNG_2
1085+ find_it_4 = 'href="%s"' % constants .Dashboard .get_dash_pie_1 ()
1086+ swap_with_4 = 'href="%s"' % constants .Dashboard .get_dash_pie_2 ()
10871087 try :
10881088 abs_path = os .path .abspath ("." )
10891089 dashboard_path = os .path .join (abs_path , "dashboard.html" )
0 commit comments