mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
don't highlight Java methods as not callable (PY-9037)
This commit is contained in:
@@ -3,14 +3,23 @@ package com.jetbrains.jython;
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
|
||||
import com.jetbrains.python.PythonTestUtil;
|
||||
import com.jetbrains.python.inspections.PyCallingNonCallableInspection;
|
||||
import com.jetbrains.python.inspections.PyUnresolvedReferencesInspection;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class PyJythonHighlightingTest extends LightCodeInsightFixtureTestCase {
|
||||
public void testCallableJavaClass() {
|
||||
myFixture.configureByFile("callableJavaClass.py");
|
||||
myFixture.enableInspections(PyCallingNonCallableInspection.class);
|
||||
doCallableTest();
|
||||
}
|
||||
|
||||
public void testCallableStaticMethod() {
|
||||
doCallableTest();
|
||||
}
|
||||
|
||||
private void doCallableTest() {
|
||||
myFixture.configureByFile(getTestName(false) + ".py");
|
||||
myFixture.enableInspections(PyCallingNonCallableInspection.class, PyUnresolvedReferencesInspection.class);
|
||||
myFixture.checkHighlighting(true, false, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user