@@ -989,7 +989,7 @@ def dashboard_pre_processing():
989
989
def _create_dashboard_assets_ ():
990
990
import codecs
991
991
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
993
993
994
994
abs_path = os .path .abspath ("." )
995
995
assets_folder = os .path .join (abs_path , "assets" )
@@ -1001,11 +1001,11 @@ def _create_dashboard_assets_():
1001
1001
existing_pytest_style = None
1002
1002
with open (pytest_style_css , "r" ) as f :
1003
1003
existing_pytest_style = f .read ()
1004
- if existing_pytest_style == pytest_style :
1004
+ if existing_pytest_style == get_pytest_style () :
1005
1005
add_pytest_style_css = False
1006
1006
if add_pytest_style_css :
1007
1007
out_file = codecs .open (pytest_style_css , "w+" , encoding = "utf-8" )
1008
- out_file .writelines (pytest_style )
1008
+ out_file .writelines (get_pytest_style () )
1009
1009
out_file .close ()
1010
1010
live_js_file = os .path .join (assets_folder , "live.js" )
1011
1011
add_live_js_file = True
@@ -1082,8 +1082,8 @@ def _perform_behave_unconfigure_():
1082
1082
)
1083
1083
find_it_3 = '<td class="col-result">Untested</td>'
1084
1084
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 ()
1087
1087
try :
1088
1088
abs_path = os .path .abspath ("." )
1089
1089
dashboard_path = os .path .join (abs_path , "dashboard.html" )
0 commit comments