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:
Andrey Vlasovskikh
2015-07-01 02:00:16 +03:00
parent 6e8713e25c
commit 1c7992ec75
3 changed files with 5 additions and 5 deletions

View File

@@ -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/";
}
}

View File

@@ -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/";
}
}

View File

@@ -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>