Skip to content

Commit

Permalink
fix html tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed Jul 8, 2021
1 parent 67464de commit e1ef1f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration_tests/test_dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_catboost_regressor():
def test_classification_dashboard(dash_duo):
explainer = get_classification_explainer()
db = ExplainerDashboard(explainer, title="testing", responsive=False)
html - db.to_html()
html = db.to_html()
assert html.startswith('\n<!DOCTYPE html>\n<html'), "failed to generate dashboard to_html"

dash_duo.start_server(db.app)
Expand All @@ -133,7 +133,7 @@ def test_classification_dashboard(dash_duo):
def test_regression_dashboard(dash_duo):
explainer = get_regression_explainer()
db = ExplainerDashboard(explainer, title="testing", responsive=False)
html - db.to_html()
html = db.to_html()
assert html.startswith('\n<!DOCTYPE html>\n<html'), "failed to generate dashboard to_html"

dash_duo.start_server(db.app)
Expand All @@ -143,7 +143,7 @@ def test_regression_dashboard(dash_duo):
def test_simple_classification_dashboard(dash_duo):
explainer = get_classification_explainer()
db = ExplainerDashboard(explainer, title="testing", responsive=False, simple=True)
html - db.to_html()
html = db.to_html()
assert html.startswith('\n<!DOCTYPE html>\n<html'), "failed to generate dashboard to_html"

dash_duo.start_server(db.app)
Expand All @@ -154,7 +154,7 @@ def test_simple_classification_dashboard(dash_duo):
def test_simple_regression_dashboard(dash_duo):
explainer = get_regression_explainer()
db = ExplainerDashboard(explainer, title="testing", responsive=False, simple=True)
html - db.to_html()
html = db.to_html()
assert html.startswith('\n<!DOCTYPE html>\n<html'), "failed to generate dashboard to_html"

dash_duo.start_server(db.app)
Expand Down

0 comments on commit e1ef1f1

Please sign in to comment.