Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix missing image in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 17, 2017
1 parent 63a031d commit 35ec0ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _unittests/ut_dnotebooks/test_LONG_2A_notebook_1.py
Expand Up @@ -7,6 +7,7 @@
import sys
import os
import unittest
import shutil


try:
Expand Down Expand Up @@ -58,6 +59,13 @@ def test_notebook_runner(self):
from src.ensae_teaching_cs.automation.notebook_test_helper import clean_function_1a
temp = get_temp_folder(__file__, "temp_notebook2a_1")
keepnote = ls_notebooks("td2a")
fold = os.path.dirname(keepnote[0])
for png in os.listdir(fold):
if ".png" not in png:
continue
fLOG("copy", png)
shutil.copy(os.path.join(fold, png), temp)
self.assertTrue(len(keepnote) > 0)
execute_notebooks(temp, keepnote, (lambda i, n: "_1" in n),
clean_function=clean_function_1a, fLOG=fLOG, dump=src.ensae_teaching_cs)

Expand Down

0 comments on commit 35ec0ef

Please sign in to comment.