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

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