Fix tests: merge two tests and do not step into library files in tests because of allowed roots check

This commit is contained in:
Elizaveta Shashkova
2016-02-25 17:35:46 +03:00
parent c67a468d9b
commit d128d3f08f
2 changed files with 2 additions and 20 deletions
+1 -1
View File
@@ -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");