public void testEpydocParamTag() { final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule()); settings.setFormat(DocStringFormat.EPYTEXT); try { doTest(); } finally { settings.setFormat(DocStringFormat.PLAIN); } }
public void testIdentifiersInPlainDocstring() { final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule()); settings.setFormat(DocStringFormat.PLAIN); myFixture.configureByFile("completion/identifiersInPlainDocstring.py"); final LookupElement[] elements = myFixture.completeBasic(); assertNotNull(elements); assertContainsElements( Lists.newArrayList(elements), LookupElementBuilder.create("bar") .withAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE)); }
public void testEpydocTagsMiddle() { final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule()); settings.setFormat(DocStringFormat.EPYTEXT); try { myFixture.configureByFile("completion/epydocTagsMiddle.py"); myFixture.completeBasic(); myFixture.checkResultByFile("completion/epydocTagsMiddle.after.py"); } finally { settings.setFormat(DocStringFormat.PLAIN); } }
public void testEpydocTags() { final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule()); settings.setFormat(DocStringFormat.EPYTEXT); try { myFixture.configureByFile("completion/epydocTags.py"); myFixture.completeBasic(); final List<String> lookupElementStrings = myFixture.getLookupElementStrings(); assertNotNull(lookupElementStrings); assertTrue(lookupElementStrings.contains("@param")); } finally { settings.setFormat(DocStringFormat.PLAIN); } }