def test_v1_no_colnames(self): result = migrate_params({ "colnames": "", "input_format": "us", "error_means_null": True }) self.assertEqual(result, { "colnames": [], "input_format": "us", "error_means_null": True })
def test_v1_no_colnames(self): result = migrate_params({ 'colnames': '', 'input_format': 'us', 'error_means_null': True }) self.assertEqual(result, { 'colnames': [], 'input_format': 'us', 'error_means_null': True })
def test_v0(self): result = migrate_params({ 'colnames': 'report_date', 'type_date': 1, 'type_null': True }) self.assertEqual( result, { 'colnames': 'report_date', 'input_format': 'us', 'error_means_null': True })
def test_v0(self): result = migrate_params({ "colnames": "report_date", "type_date": 1, "type_null": True }) self.assertEqual( result, { "colnames": ["report_date"], "input_format": "us", "error_means_null": True, }, )