Skip to content

Commit

Permalink
test_owpythonscript: Include editor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Jan 25, 2021
1 parent 628c005 commit 4ac8089
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Orange/widgets/data/tests/test_owpythonscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
from Orange.widgets.tests.base import WidgetTest, DummySignalManager
from Orange.widgets.widget import OWWidget

# import tests for python editor
from Orange.widgets.data.utils.pythoneditor.tests.test_api import *
from Orange.widgets.data.utils.pythoneditor.tests.test_bracket_highlighter import *
from Orange.widgets.data.utils.pythoneditor.tests.test_draw_whitespace import *
from Orange.widgets.data.utils.pythoneditor.tests.test_edit import *
from Orange.widgets.data.utils.pythoneditor.tests.test_indent import *
from Orange.widgets.data.utils.pythoneditor.tests.test_indenter.test_python import *
from Orange.widgets.data.utils.pythoneditor.tests.test_rectangular_selection import *
from Orange.widgets.data.utils.pythoneditor.tests.test_vim import *


class TestOWPythonScript(WidgetTest):
def setUp(self):
Expand Down Expand Up @@ -241,3 +251,7 @@ def test_no_shared_namespaces(self):
click2()
self.assertIn("NameError: name 'x' is not defined",
widget2.console.toPlainText())


if __name__ == '__main__':
unittest.main()
Empty file.

0 comments on commit 4ac8089

Please sign in to comment.