def test_dataframes_obtained_from_files(self): to_database(raw_data_file=self.csvfile(), spec_file=self.specfile()) self.check_final_dataframes() self.file_cleanup() # not todo: test update(testfolder), obtain testfolder from path using os.path.split # End of test A2 ------------------------------------------------------------------ # later in testing: # several variables + one segment # several variables + several segments # cfg -> full specification # actual files # may change in project - something I do not like: # explicit names for default data and specfiles # format of specfile (no first yaml document) # use different sqlite files for testing and 'production' # segment may not end with file end # different parsing functions for whole file and segments - better use one # move csv2db to importer. - one level up # find where full import of specification is located, move to # wipe_db_tables() not tested but very sensitive when using cache
def test_dataframes_obtained_from_files(self): to_database(raw_data_file=self.csvfile(), spec_file=self.specfile()) self.check_final_dataframes() self.file_cleanup()
def test_dataframes_obtained_from_files(): to_database(raw_data_file=csvfile(), spec_file=specfile()) check_final_dataframes() file_cleanup()