text: """
  @brief      test log(time=170s)
  """
  import os
  import unittest
  import shutil
  from pyquickhelper.loghelper import fLOG
  from pyquickhelper.pycode import get_temp_folder, add_missing_development_version
  import ensae_teaching_cs
  
  
  class TestNotebookRunner2a_1(unittest.TestCase):
  
      def setUp(self):
          fLOG("add missing dependencies", OutputPrint=__name__ == "__main__")
          add_missing_development_version(
              ["pyensae", "pymyinstall", "pymmails", "jyquickhelper"], __file__)
  
      def test_notebook_runner(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
          from ensae_teaching_cs.automation.notebook_test_helper import ls_notebooks, execute_notebooks
          from 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=ensae_teaching_cs)
  
  
  if __name__ == "__main__":
      unittest.main()
  