mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix tests: merge two tests and do not step into library files in tests because of allowed roots check
This commit is contained in:
@@ -3,7 +3,7 @@ from calendar import setfirstweekday
|
||||
def foo(x):
|
||||
return x + 1
|
||||
|
||||
foo(2)
|
||||
x = foo(2)
|
||||
stopped_in_user_file = True
|
||||
setfirstweekday(3)
|
||||
x = 9
|
||||
@@ -263,25 +263,7 @@ public class PythonDebuggerTest extends PyEnvTestCase {
|
||||
eval("x").hasValue("2");
|
||||
resume();
|
||||
waitForPause();
|
||||
stepIntoMyCode();
|
||||
waitForPause();
|
||||
eval("stopped_in_user_file").hasValue("True");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void testStepIntoMyCodeFromLib() throws Exception {
|
||||
runPythonTest(new PyDebuggerTask("/debug", "test_my_code.py") {
|
||||
@Override
|
||||
public void before() throws Exception {
|
||||
toggleBreakpoint(getScriptPath(), 7);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testing() throws Exception {
|
||||
waitForPause();
|
||||
stepInto();
|
||||
waitForPause();
|
||||
eval("x").hasValue("3");
|
||||
stepIntoMyCode();
|
||||
waitForPause();
|
||||
eval("stopped_in_user_file").hasValue("True");
|
||||
|
||||
Reference in New Issue
Block a user