mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
python completion test added
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
method = {}
|
||||
method
|
||||
@@ -0,0 +1,2 @@
|
||||
method = {}
|
||||
meth<caret>
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* User: anna
|
||||
* Date: 06-Mar-2008
|
||||
*/
|
||||
package com.jetbrains.python;
|
||||
|
||||
import com.intellij.codeInsight.completion.CodeCompletionHandler;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.testFramework.LightCodeInsightTestCase;
|
||||
|
||||
public class PythonCompletionTest extends LightCodeInsightTestCase{
|
||||
|
||||
private void doTest() throws Exception {
|
||||
final String testName = getTestName(false);
|
||||
configureByFile(testName + ".py");
|
||||
new CodeCompletionHandler().invoke(getProject(), getEditor(), getFile());
|
||||
checkResultByFile(testName + ".after.py");
|
||||
}
|
||||
|
||||
protected String getTestDataPath() {
|
||||
return PathManager.getHomePath() + "/plugins/python/testData/completion/";
|
||||
}
|
||||
|
||||
public void testLocalVar() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user