@@ -0,0 +1,1652 @@
+%22%22%22%0A@brief      test log(time=2s)%0A%22%22%22%0A%0Aimport sys%0Aimport os%0Aimport unittest%0A%0Atry:%0A    import src%0Aexcept ImportError:%0A    path = os.path.normpath(%0A        os.path.abspath(%0A            os.path.join(%0A                os.path.split(__file__)%5B0%5D,%0A                %22..%22,%0A                %22..%22)))%0A    if path not in sys.path:%0A        sys.path.append(path)%0A    import src%0A%0Atry:%0A    import pyquickhelper%0Aexcept ImportError:%0A    path = os.path.normpath(%0A        os.path.abspath(%0A            os.path.join(%0A                os.path.split(__file__)%5B0%5D,%0A                %22..%22,%0A                %22..%22,%0A                %22..%22,%0A                %22pyquickhelper%22,%0A                %22src%22)))%0A    if path not in sys.path:%0A        sys.path.append(path)%0A    if %22PYQUICKHELPER%22 in os.environ and len(os.environ%5B%22PYQUICKHELPER%22%5D) %3E 0:%0A        sys.path.append(os.environ%5B%22PYQUICKHELPER%22%5D)%0A    import pyquickhelper%0A%0A%0Afrom pyquickhelper import fLOG, get_temp_folder, synchronize_folder%0Afrom src.pymyinstall.win_installer.win_patch import win_patch_paths%0A%0A%0Aclass TestMakeExe(unittest.TestCase):%0A%0A    def test_make_exe(self):%0A        fLOG(%0A            __file__,%0A            self._testMethodName,%0A            OutputPrint=__name__ == %22__main__%22)%0A%0A        temp = get_temp_folder(__file__, %22temp_make_exe%22)%0A%0A        from pip._vendor.distlib.scripts import ScriptMaker%0A        maker = ScriptMaker(os.path.join(temp, %22..%22, %22..%22, %22..%22, %22src%22), temp)%0A        maker.make('run_update_all = pymyinstall:update_all')%0A        if sys.platform.startswith(%22win%22):%0A            exe = os.path.join(temp, %22run_update_all.exe%22)%0A            assert os.path.exists(exe)%0A%0Aif __name__ == %22__main__%22:%0A    unittest.main()%0A

add a unit test to test the creation of an executable