PY-21645 Disable some inspections in function type comments

This commit is contained in:
Mikhail Golubev
2016-12-02 17:26:11 +03:00
parent 32c2b216c0
commit 483439720c
4 changed files with 62 additions and 0 deletions
@@ -351,4 +351,17 @@ public class PythonInspectionsTest extends PyTestCase {
public void testPyDunderSlotsInspection() {
runWithLanguageLevel(LanguageLevel.PYTHON30, () -> doHighlightingTest(PyDunderSlotsInspection.class));
}
// PY-21645
public void testInspectionsDisabledInFunctionTypeComments() {
myFixture.enableInspections(PyIncorrectDocstringInspection.class);
myFixture.enableInspections(PyMissingOrEmptyDocstringInspection.class);
myFixture.enableInspections(PySingleQuotedDocstringInspection.class);
myFixture.enableInspections(PyByteLiteralInspection.class);
myFixture.enableInspections(PyMandatoryEncodingInspection.class);
myFixture.enableInspections(PyNonAsciiCharInspection.class);
myFixture.configureByFile("inspections/" + getTestName(false) + "/test.py");
myFixture.checkHighlighting(true, false, true);
}
}