mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-22620 Set myFixture#setCaresAboutInjection(false) in PyQuickFixTest and PyQuickFixTestCase
Otherwise tests where we check quick fixes on elements inside fragments injected in type comments fail, because myFixture.checkHighlighting() compares highlighting info of injected and top-level editors with inherently different offsets. Previously it didn't happen because we refused to inject into raw comments containing "<warning>" markers and performed it only later for the cleaned up version of test data with these markers stripped.
This commit is contained in:
@@ -40,6 +40,7 @@ public class PyQuickFixTest extends PyTestCase {
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
InspectionProfileImpl.INIT_INSPECTIONS = true;
|
||||
myFixture.setCaresAboutInjection(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,6 +28,12 @@ import java.util.Arrays;
|
||||
* User: ktisha
|
||||
*/
|
||||
public abstract class PyQuickFixTestCase extends PyTestCase {
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
myFixture.setCaresAboutInjection(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNls
|
||||
protected String getTestDataPath() {
|
||||
|
||||
Reference in New Issue
Block a user