use of com.jetbrains.python.documentation.PyDocumentationSettings in project intellij-community by JetBrains.
the class PySmartEnterTest method testDocEpytext.
public void testDocEpytext() {
CodeInsightSettings codeInsightSettings = CodeInsightSettings.getInstance();
boolean oldStubOnEnter = codeInsightSettings.JAVADOC_STUB_ON_ENTER;
codeInsightSettings.JAVADOC_STUB_ON_ENTER = true;
PyDocumentationSettings documentationSettings = PyDocumentationSettings.getInstance(myFixture.getModule());
documentationSettings.setFormat(DocStringFormat.EPYTEXT);
try {
doTest();
} finally {
documentationSettings.setFormat(DocStringFormat.PLAIN);
codeInsightSettings.JAVADOC_STUB_ON_ENTER = oldStubOnEnter;
}
}
use of com.jetbrains.python.documentation.PyDocumentationSettings in project intellij-community by JetBrains.
the class PythonHighlightingTest method testDocstring.
public void testDocstring() {
// PY-8025
PyDocumentationSettings documentationSettings = PyDocumentationSettings.getInstance(myFixture.getModule());
documentationSettings.setFormat(DocStringFormat.REST);
try {
doTest(false, true);
} finally {
documentationSettings.setFormat(DocStringFormat.PLAIN);
}
}
use of com.jetbrains.python.documentation.PyDocumentationSettings in project intellij-community by JetBrains.
the class PythonCompletionTest method testEpydocTagsMiddle.
public void testEpydocTagsMiddle() {
final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule());
settings.setFormat(DocStringFormat.EPYTEXT);
try {
myFixture.configureByFile("epydocTagsMiddle.py");
myFixture.completeBasic();
myFixture.checkResultByFile("epydocTagsMiddle.after.py");
} finally {
settings.setFormat(DocStringFormat.PLAIN);
}
}
use of com.jetbrains.python.documentation.PyDocumentationSettings in project intellij-community by JetBrains.
the class PythonCompletionTest method testEpydocParamTag.
public void testEpydocParamTag() {
final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule());
settings.setFormat(DocStringFormat.EPYTEXT);
try {
doTest();
} finally {
settings.setFormat(DocStringFormat.PLAIN);
}
}
Aggregations