options_first=False, projectName="fundamentals" ) arguments, settings, log, dbConn = su.setup() # load settings stream = file( "/Users/Dave/.config/fundamentals/fundamentals.yaml", 'r') settings = yaml.load(stream) stream.close() # SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE moduleDirectory = os.path.dirname(__file__) utKit = utKit(moduleDirectory) log, dbConn, pathToInputDir, pathToOutputDir = utKit.setupModule() utKit.tearDownModule() try: shutil.rmtree(pathToOutputDir) # Recursively create missing directories if not os.path.exists(pathToOutputDir): os.makedirs(pathToOutputDir) except: pass shutil.copytree(pathToInputDir + "/mysql_scripts", pathToOutputDir + "/mysql_scripts") class test_directory_script_runner(unittest.TestCase):
options_first=False, projectName="fundamentals" ) arguments, settings, log, dbConn = su.setup() # load settings stream = file( "/Users/Dave/.config/fundamentals/fundamentals.yaml", 'r') settings = yaml.load(stream) stream.close() # SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE moduleDirectory = os.path.dirname(__file__) utKit = utKit(moduleDirectory) log, dbConn, pathToInputDir, pathToOutputDir = utKit.setupModule() utKit.tearDownModule() dictList = [] for i in range(10000000): dictList.append({ "col1": i, "col2": i + 10., "col3": i / 2., "col4": i * 34. }) dbSettings = dbSettings = { 'host': '127.0.0.1', 'user': '******',