def test_get_metas_data(self): """Test data import""" print(sys._getframe().f_code.co_name) real_file = hf.get_METAS_data('VAL',self.file_path) self.assertIsNotNone(real_file) assert len(real_file) == 4 kwargs = {"airline":'VAL',"file_path":self.fake_path} self.assertRaises(FileNotFoundError,hf.get_METAS_data,**kwargs)
def test_get_metas_data_prompt_for_customline(self,mock): print(sys._getframe().f_code.co_name) file = hf.get_METAS_data(file_path=self.file_path) self.assertIsNotNone(file)