mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +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:
@@ -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/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user