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:
Mikhail Golubev
2017-04-26 18:11:37 +03:00
parent 5cc87abf40
commit 818f2015cd
2 changed files with 7 additions and 0 deletions
@@ -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() {