Permalink
Browse files

fix unit test (copy data for a notebook)

  • Loading branch information...
sdpython committed Jan 8, 2018
1 parent fa292c2 commit 416e35622ca95195b2453f7deda20f7d0a47328b
Showing with 8 additions and 0 deletions.
  1. +8 −0 _unittests/ut_documentation/test_notebook_example.py
@@ -6,6 +6,7 @@
import sys
import os
import unittest
import shutil
try:
@@ -58,6 +59,13 @@ def test_notebook_example(self):
temp = get_temp_folder(__file__, "temp_exemples")
keepnote = ls_notebooks("exemples")
self.assertTrue(len(keepnote) > 0)
source = os.path.join(os.path.dirname(keepnote[0]), "data")
images = os.path.join(temp, 'data')
os.mkdir(images)
for img in os.listdir(source):
shutil.copy(os.path.join(source, img), images)
res = execute_notebooks(temp, keepnote,
lambda i, n: "poppins" not in n,
fLOG=fLOG,

0 comments on commit 416e356

Please sign in to comment.