mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[analysisTool] use CamelHumpMatcher in common tests and analysis tool
GitOrigin-RevId: cf10758e9862b521051c60bc331cd83cbb62b802
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7adc5c1bca
commit
d0407342dd
@@ -2,6 +2,7 @@ package com.jetbrains.python;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.codeInsight.completion.CompletionType;
|
||||
import com.intellij.codeInsight.completion.impl.CamelHumpMatcher;
|
||||
import com.intellij.codeInsight.lookup.AutoCompletionPolicy;
|
||||
import com.intellij.codeInsight.lookup.Lookup;
|
||||
import com.intellij.codeInsight.lookup.LookupElement;
|
||||
@@ -29,7 +30,7 @@ public abstract class PythonCommonCompletionTest extends PythonCommonTestCase {
|
||||
}
|
||||
|
||||
protected void doTest() {
|
||||
//CamelHumpMatcher.forceStartMatching(myFixture.getTestRootDisposable());
|
||||
CamelHumpMatcher.forceStartMatching(myFixture.getTestRootDisposable());
|
||||
final String testName = getTestName(true);
|
||||
myFixture.configureByFile(testName + ".py");
|
||||
myFixture.completeBasic();
|
||||
|
||||
@@ -17,5 +17,6 @@
|
||||
<orderEntry type="module" module-name="intellij.platform.projectModel" scope="TEST" />
|
||||
<orderEntry type="library" scope="TEST" name="Guava" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="StreamEx" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.platform.analysis.impl" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,19 +1,12 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.jetbrains.python;
|
||||
|
||||
import com.intellij.codeInsight.completion.impl.CamelHumpMatcher;
|
||||
import com.jetbrains.python.fixture.PythonCommonCodeInsightTestFixture;
|
||||
import com.jetbrains.python.fixtures.PythonPlatformCodeInsightTestFixture;
|
||||
|
||||
public class PythonCompletionTest extends PythonCommonCompletionTest {
|
||||
private final PythonCommonCodeInsightTestFixture myBackingFixture = new PythonPlatformCodeInsightTestFixture();
|
||||
|
||||
@Override
|
||||
protected void doTest() {
|
||||
CamelHumpMatcher.forceStartMatching(myBackingFixture.getTestRootDisposable());
|
||||
super.doTest();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PythonCommonCodeInsightTestFixture getFixture() {
|
||||
return myBackingFixture;
|
||||
|
||||
Reference in New Issue
Block a user