Example #1
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     PathFinder.dir_content_remove(
         os.path.join(self.s_root_path, "test/output"))
     OptionManager._drop()
     SQLManager._drop()
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     shutil.rmtree(os.path.join(self.test_path, "outdir"),
                   ignore_errors=True)
     OptionManager._drop()
     SQLManager._drop()
Example #3
0
 def tearDown(self):
     self.__session.rollback()
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     PathFinder.dir_content_remove(os.path.join(self.s_root_path, "test/output"))
     OptionManager._drop()
     SQLManager._drop()
Example #4
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     # PathManager.dir_content_remove("outdir")
     shutil.rmtree("outdir", ignore_errors=True)
     OptionManager._drop()
     SQLManager._drop()
Example #5
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     s_root_path = PathFinder.get_module_path()
     SQLManager.instance().drop_all()
     PathFinder.dir_content_remove(os.path.join(s_root_path, "test/output"))
     OptionManager._drop()
     SQLManager._drop()
Example #6
0
 def tearDown(self):
     # pass
     # pip.main(['uninstall', 'wopexamplecar', '-y']) # working in travis
     subprocess.run(
         [sys.executable, '-m', 'pip', 'uninstall', 'example', '-y'])
     shutil.rmtree(os.path.join(self.working_directory, "build"),
                   ignore_errors=True)
     shutil.rmtree(os.path.join(self.working_directory,
                                "wopexamplecar.egg-info"),
                   ignore_errors=True)
     PathManager.unlink(self.db)
     OptionManager._drop()
     SQLManager._drop()
Example #7
0
 def tearDown(self):
     SQLManager.instance().get_session().close() 
     SQLManager.instance().drop_all()
     OptionManager._drop()
     PathFinder.silentremove("test/output/output_file1.txt")
     SQLManager._drop()
Example #8
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     OptionManager._drop()
     PathFinder.silentremove("test/output/output_File1.txt")
     SQLManager._drop()
Example #9
0
 def tearDown(self):
     self.__session.rollback()
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     OptionManager._drop()
     SQLManager._drop()
Example #10
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     PathFinder.dir_content_remove("test/output")
     OptionManager._drop()
     SQLManager._drop()
Example #11
0
 def tearDown(self):
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     OptionManager._drop()
     SQLManager._drop()
Example #12
0
 def tearDown(self):
     SQLManager.instance().get_session().close() 
     SQLManager.instance().drop_all()
     OptionManager._drop()
     PathManager.unlink("tests/outdir/output_file1.txt")
     SQLManager._drop()