mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Fixed running Python plugin tests in IntelliJ
The tests used to depend on python-community-tests, so some components from IdeaPlugin.xml didn't get initialized. Added a dependency on Python Community plugin resources for the correct plugin.xml.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
package com.jetbrains.jython;
|
||||
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
|
||||
import com.jetbrains.python.PythonTestUtil;
|
||||
import com.jetbrains.python.PythonHelpersLocator;
|
||||
import com.jetbrains.python.inspections.PyCallingNonCallableInspection;
|
||||
import com.jetbrains.python.inspections.unresolvedReference.PyUnresolvedReferencesInspection;
|
||||
|
||||
@@ -41,6 +41,6 @@ public class PyJythonHighlightingTest extends LightCodeInsightFixtureTestCase {
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PythonTestUtil.getTestDataPath() + "/highlighting/jython/";
|
||||
return PythonHelpersLocator.getPythonCommunityPath() + "/testData/highlighting/jython/";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.jetbrains.jython;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.testFramework.ResolveTestCase;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import com.jetbrains.python.PythonTestUtil;
|
||||
import com.jetbrains.python.PythonHelpersLocator;
|
||||
import junit.framework.Assert;
|
||||
|
||||
/**
|
||||
@@ -87,6 +87,6 @@ public class PyToJavaResolveTest extends ResolveTestCase {
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PythonTestUtil.getTestDataPath() + "/resolve/pyToJava/";
|
||||
return PythonHelpersLocator.getPythonCommunityPath() + "/testData/resolve/pyToJava/";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
<orderEntry type="library" scope="TEST" name="JUnit3" level="project" />
|
||||
<orderEntry type="module" module-name="java-impl" />
|
||||
<orderEntry type="module" module-name="IntelliLang-java" scope="RUNTIME" />
|
||||
<orderEntry type="module" module-name="python-community-tests" />
|
||||
<orderEntry type="module" module-name="python-community-plugin" />
|
||||
<orderEntry type="module" module-name="python-community" />
|
||||
<orderEntry type="module" module-name="IntelliLang-xml" scope="RUNTIME" />
|
||||
<orderEntry type="module" module-name="python-community-plugin-resources" scope="RUNTIME" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user