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()
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()
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()
def tearDown(self): self.__session.rollback() SQLManager.instance().get_session().close() SQLManager.instance().drop_all() OptionManager._drop() SQLManager._drop()
def tearDown(self): SQLManager.instance().get_session().close() SQLManager.instance().drop_all() OptionManager._drop() PathManager.unlink("tests/outdir/output_file1.txt") SQLManager._drop()