From 59734305cd9d6890590c2d8596b61987982a49c7 Mon Sep 17 00:00:00 2001 From: Rafael Irgolic Date: Thu, 7 Jan 2021 03:02:12 +0000 Subject: [PATCH] owcsvimport: Test editor->import options type change --- Orange/widgets/data/tests/test_owcsvimport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/data/tests/test_owcsvimport.py b/Orange/widgets/data/tests/test_owcsvimport.py index 1795a0aebff..2f6f5444466 100644 --- a/Orange/widgets/data/tests/test_owcsvimport.py +++ b/Orange/widgets/data/tests/test_owcsvimport.py @@ -377,7 +377,7 @@ def test_browse_for_missing_prefixed_parent(self): self.assertEqual(item[0], cur.varPath()) self.assertEqual(item[1].as_dict(), cur.options().as_dict()) - def test_unsafe_cast_warning(self): + def test_unsafe_cast_warning_and_import_options_type_mirror(self): dirname = os.path.dirname(__file__) path = os.path.join(dirname, "data-regions.tab") @@ -393,7 +393,9 @@ def test_unsafe_cast_warning(self): self.process_events(until=lambda: w.data is not None) index = w.domain_editor.model().index(0, 1) w.domain_editor.model().setData(index, 'text') + self.assertTrue(w.Warning.numeric_cast.is_shown()) + self.assertTrue(w.current_item().options().columntypes[0][1] == ColumnType.Text) class TestImportDialog(GuiTest):