Skip to content

Commit

Permalink
owcsvimport: Test editor->import options type change
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Jan 7, 2021
1 parent 0d35ef0 commit 5973430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/widgets/data/tests/test_owcsvimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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):
Expand Down

0 comments on commit 5973430

Please sign in to comment.