Browse Source

Add csv test case

pull/1544/head
Hironsan 3 years ago
parent
commit
edfeec22b9
1 changed files with 6 additions and 0 deletions
  1. 6
      backend/api/tests/test_tasks.py

6
backend/api/tests/test_tasks.py

@ -140,6 +140,12 @@ class TestIngestClassificationData(TestIngestData):
response = self.ingest_data(filename, file_format) response = self.ingest_data(filename, file_format)
self.assert_parse_error(response) 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): class TestIngestSequenceLabelingData(TestIngestData):
task = SEQUENCE_LABELING task = SEQUENCE_LABELING

Loading…
Cancel
Save