From 4ac80891dc9c5f4c571288586ee3dd1eda7dc50d Mon Sep 17 00:00:00 2001 From: Rafael Irgolic Date: Mon, 25 Jan 2021 00:40:08 +0000 Subject: [PATCH] test_owpythonscript: Include editor tests --- Orange/widgets/data/tests/test_owpythonscript.py | 14 ++++++++++++++ .../data/utils/pythoneditor/tests/__init__.py | 0 2 files changed, 14 insertions(+) create mode 100644 Orange/widgets/data/utils/pythoneditor/tests/__init__.py diff --git a/Orange/widgets/data/tests/test_owpythonscript.py b/Orange/widgets/data/tests/test_owpythonscript.py index 1876e1ac10b..69494b95b49 100644 --- a/Orange/widgets/data/tests/test_owpythonscript.py +++ b/Orange/widgets/data/tests/test_owpythonscript.py @@ -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): @@ -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() \ No newline at end of file diff --git a/Orange/widgets/data/utils/pythoneditor/tests/__init__.py b/Orange/widgets/data/utils/pythoneditor/tests/__init__.py new file mode 100644 index 00000000000..e69de29bb2d