diff --git a/backend/api/tests/test_tasks.py b/backend/api/tests/test_tasks.py index ca25e4d0..446b4373 100644 --- a/backend/api/tests/test_tasks.py +++ b/backend/api/tests/test_tasks.py @@ -140,6 +140,12 @@ class TestIngestClassificationData(TestIngestData): response = self.ingest_data(filename, file_format) self.assert_parse_error(response) + def test_wrong_csv(self): + filename = 'text_classification/example.jsonl' + file_format = 'CSV' + response = self.ingest_data(filename, file_format) + self.assert_parse_error(response) + class TestIngestSequenceLabelingData(TestIngestData): task = SEQUENCE_LABELING