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()
예제 #2
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()
예제 #3
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()
예제 #4
0
 def tearDown(self):
     self.__session.rollback()
     SQLManager.instance().get_session().close()
     SQLManager.instance().drop_all()
     OptionManager._drop()
     SQLManager._drop()
예제 #5
0
파일: test_dag.py 프로젝트: aitgon/wopmars
 def tearDown(self):
     SQLManager.instance().get_session().close() 
     SQLManager.instance().drop_all()
     OptionManager._drop()
     PathManager.unlink("tests/outdir/output_file1.txt")
     SQLManager._drop()