PY-17002 Suggest types inside unclosed parentheses in Google docstrings
[idea/community.git] / python / testSrc / com / jetbrains / python / PythonCompletionTest.java
index ad48594360a60489e42b8e88c32d5efc411d8c71..4e00465d167aecfd90912455bc2c31e528afce18 100644 (file)
@@ -484,6 +484,18 @@ public class PythonCompletionTest extends PyTestCase {
     });
   }
 
     });
   }
 
+  // PY-17002
+  public void testParamTypeInGoogleDocstringWithoutClosingParenthesis() {
+    runWithDocStringFormat(DocStringFormat.GOOGLE, new Runnable() {
+      @Override
+      public void run() {
+        final List<String> variants = doTestByFile();
+        assertNotNull(variants);
+        assertSameElements(variants, "str", "basestring");
+      }
+    });
+  }
+
   public void testPep328Completion() {  // PY-3409
     myFixture.copyDirectoryToProject("pep328", "pep328");
     myFixture.configureByFile("pep328/package/subpackage1/moduleX.py");
   public void testPep328Completion() {  // PY-3409
     myFixture.copyDirectoryToProject("pep328", "pep328");
     myFixture.configureByFile("pep328/package/subpackage1/moduleX.py");