Skip to content

Commit

Permalink
fix a bug in unit test testing notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 8, 2017
1 parent cd38fe9 commit bd2faac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions _unittests/ut_documentation/test_notebook_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@


from pyquickhelper.loghelper import fLOG
from pyquickhelper.filehelper import synchronize_folder
from pyquickhelper.pycode import get_temp_folder, add_missing_development_version
from pyquickhelper.pycode import fix_tkinter_issues_virtualenv, is_travis_or_appveyor

Expand Down Expand Up @@ -75,12 +74,14 @@ def test_notebook_session(self):
files = [os.path.join(fold, "pop-totale-france.txt")]
for name in files:
shutil.copy(name, temp)

folder = os.path.join(os.path.dirname(keepnote[0]), "data")
data_tem = os.path.join(temp, "data")
if not os.path.exists(data_tem):
os.mkdir(data_tem)
synchronize_folder(folder, data_tem, fLOG=print)
files = [os.path.join(fold, "data", "housing.data"),
os.path.join(fold, "data", "housing.names"),
os.path.join(fold, "data", "multiTimeline.csv"), ]
for name in files:
shutil.copy(name, data_tem)

res = execute_notebooks(temp, keepnote,
lambda i, n: "deviner" not in n,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def write_version():
r = process_standard_options_for_setup(
sys.argv, __file__, project_var_name,
layout=["html"],
unittest_modules=["pyquickhelper"],
unittest_modules=["pyquickhelper", "ensae_teaching_cs"],
requirements=["pyquickhelper", "pyensae", "jyquickhelper",
"pyrsslocal", "pymyinstall", "mlstatpy", "ensae_teaching_cs"],
additional_notebook_path=["pyquickhelper", "jyquickhelper",
Expand Down

0 comments on commit bd2faac

Please sign in to comment.