mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Restore python debugger unittests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
__author__ = 'Dmitry.Trofimov'
|
||||
|
||||
import unittest
|
||||
import os
|
||||
|
||||
test_data_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', 'testData', 'debug'))
|
||||
|
||||
|
||||
class PyDevTestCase(unittest.TestCase):
|
||||
def testZipFileExits(self):
|
||||
from pydevd_file_utils import exists
|
||||
|
||||
self.assertTrue(exists(test_data_path + '/zipped_lib.zip/zipped_module.py'))
|
||||
self.assertFalse(exists(test_data_path + '/zipped_lib.zip/zipped_module2.py'))
|
||||
self.assertFalse(exists(test_data_path + '/zipped_lib2.zip/zipped_module.py'))
|
||||
|
||||
|
||||
def testEggFileExits(self):
|
||||
from pydevd_file_utils import exists
|
||||
|
||||
self.assertTrue(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd.py'))
|
||||
self.assertFalse(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd2.py'))
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Note that it's a python script but it'll spawn a process to run as jython, ironpython and as python.
|
||||
'''
|
||||
from tests_python.debugger_unittest import get_free_port
|
||||
from tests_pydevd_python.debugger_unittest import get_free_port
|
||||
import threading
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import unittest
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from tests_python import debugger_unittest
|
||||
from tests_pydevd_python import debugger_unittest
|
||||
|
||||
TEST_DJANGO = False
|
||||
if sys.version_info[:2] == (2, 7):
|
||||
|
||||
@@ -73,7 +73,7 @@ public class PythonDebuggerTest extends PyEnvTestCase {
|
||||
@Test
|
||||
@Staging
|
||||
public void testPydevTests_Debugger() {
|
||||
unittests("tests_python/test_debugger.py");
|
||||
unittests("tests_pydevd_python/test_debugger.py");
|
||||
}
|
||||
|
||||
private void unittests(final String script) {
|
||||
@@ -102,8 +102,9 @@ public class PythonDebuggerTest extends PyEnvTestCase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Staging
|
||||
public void testDebug() { //TODO: merge it into pydev tests
|
||||
unittests("test_debug.py");
|
||||
unittests("tests_pydevd/test_egg_zip_exist.py");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user