Skip to content

Commit

Permalink
Fix import documents widget tests for new metadata handling
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Jan 15, 2025
1 parent e83ae07 commit d2461eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orangecontrib/text/widgets/tests/test_owimportdocuments.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def test_conllu_cb(self):
# check named entities are on the output
self.widget.controls.ner_cb.setChecked(True)
corpus = self.get_output(self.widget.Outputs.data)
self.assertEqual(len(corpus.domain.metas), 5)
self.assertEqual(len(corpus.domain.metas), 23)
# check only corpus is on the output when all boxes unchecked
self.widget.controls.lemma_cb.setChecked(False)
self.widget.controls.pos_cb.setChecked(False)
self.widget.controls.ner_cb.setChecked(False)
corpus = self.get_output(self.widget.Outputs.data)
self.assertFalse(corpus.has_tokens())
self.assertIsNone(corpus.pos_tags)
self.assertEqual(len(corpus.domain.metas), 4)
self.assertEqual(len(corpus.domain.metas), 22)

def test_info_box(self):
self.assertEqual("5 documents, 1 skipped", self.widget.info_area.text())
Expand Down

0 comments on commit d2461eb

Please sign in to comment.