mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-85270 [python] Add a test PY-62203 PY-84778
GitOrigin-RevId: 321cba4e36421ffdb5d5fd056a22cf6140aa8e84
This commit is contained in:
committed by
intellij-monorepo-bot
parent
23a1cd15ce
commit
4e1e305ef7
@@ -2251,6 +2251,14 @@ public abstract class PythonCommonCompletionTest extends PythonCommonTestCase {
|
||||
});
|
||||
}
|
||||
|
||||
// PY-62203 PY-84778
|
||||
public void testMatchingSymbolsAndModulesSuggestedTogether() {
|
||||
myFixture.copyDirectoryToProject(getTestName(true), "");
|
||||
myFixture.configureByFile("a.py");
|
||||
myFixture.complete(CompletionType.BASIC, 1);
|
||||
assertContainsElements(myFixture.getLookupElementStrings(), "dataclasses", "dataclass");
|
||||
}
|
||||
|
||||
private static void runWithImportableNamesInBasicCompletionDisabled(@NotNull Runnable action) {
|
||||
PyCodeInsightSettings settings = PyCodeInsightSettings.getInstance();
|
||||
boolean old = settings.INCLUDE_IMPORTABLE_NAMES_IN_BASIC_COMPLETION;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
@datacla<caret>
|
||||
class MyClass:
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def dataclass(cls):
|
||||
return cls
|
||||
Reference in New Issue
Block a user