[docs]defget_project_root(self):""" *Get the root of the `python` package - useful for getting files in the root directory of a project* **Return** - ``rootPath`` -- the root path of a project """importosrootPath=os.path.dirname(__file__)returnrootPath
[docs]defrefresh_database(self):""" *Refresh the unit test database* """fromfundamentals.mysqlimportdirectory_script_runnerfromfundamentalsimporttoolspackageDirectory=self.get_project_root()su=tools(arguments={"settingsFile":packageDirectory+"/test_settings.yaml"},docString=__doc__,logLevel="DEBUG",options_first=False,projectName=None,defaultSettingsFile=False)arguments,settings,log,dbConn=su.setup()directory_script_runner(log=log,pathToScriptDirectory=packageDirectory+"/tests/input",dbConn=dbConn,successRule=None,failureRule=None)