Skip to content

Commit

Permalink
add init datapane config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBouche committed Aug 30, 2023
1 parent abf5bd6 commit 641eb7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
setup(
name="eurybia", # Replace with your own username
version=version_d["__version__"],
python_requires=">3.6, < 3.11",
python_requires=">3.7, < 3.11",
url="https://github.com/MAIF/eurybia",
author="Nicolas Roux, Johann Martin, Thomas Bouché",
author_email="[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_tests/test_report_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import pandas as pd
from category_encoders import OrdinalEncoder
from datapane.client import config
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split

Expand All @@ -27,6 +28,7 @@ def setUp(self):
"""
Initialize data for testing part
"""
config.init()
script_path = Path(path.abspath(__file__)).parent.parent.parent
titanic_original = path.join(script_path, "eurybia/data/titanicdata.csv")
titan_df = pd.read_csv(titanic_original, index_col=0)
Expand Down Expand Up @@ -58,7 +60,6 @@ def test_execute_report_1(self):
"""
Test execute_report() method
"""

execute_report(
smartdrift=self.smartdrift,
explainer=self.xpl,
Expand Down

0 comments on commit 641eb7f

Please sign in to comment.