def test_validate_data_file_bad(self, name, file_path, target_column, categories, ordinals, expectedMessage): result, message = validateDataset.validate_data_from_filepath( file_path, target_column, categories, ordinals) assert (message) self.assertEqual(message, expectedMessage) assert not (result)
def test_validate_data_file_good(self, name, file_path, prediction_type, target_column, categories, ordinals): result, message = validateDataset.validate_data_from_filepath( file_path, prediction_type, target_column, categories, ordinals) logger.debug("name: " + name + " file_path: " + file_path + " target:" + target_column + " res: " + str(result) + " msg: " + str(message)) self.assertTrue(result)
def test_validate_data_file_bad_no_target(self, name, file_path, target_column, expectedMessage): result, message = validateDataset.validate_data_from_filepath(file_path, None) assert not(result) assert(message) self.assertEqual(message, expectedMessage)