mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add test cases for comment formatting scenarios described in PY-12938
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#: :type: dict of (str, C)
|
||||
d = {'foo': C()}
|
||||
#: :type: list of str
|
||||
xs = ['bar']
|
||||
@@ -0,0 +1,4 @@
|
||||
#: :type: dict of (str, C)
|
||||
d = {'foo': C()}
|
||||
#: :type: list of str
|
||||
xs = ['bar']
|
||||
@@ -0,0 +1,6 @@
|
||||
###########
|
||||
##
|
||||
## MANUAL
|
||||
##
|
||||
|
||||
print('Spam')
|
||||
@@ -0,0 +1,6 @@
|
||||
###########
|
||||
##
|
||||
## MANUAL
|
||||
##
|
||||
|
||||
print('Spam')
|
||||
@@ -401,10 +401,6 @@ public class PyFormatterTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testShebang() { //PY-12775
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testParenthesisAroundGeneratorExpression() {
|
||||
doTest();
|
||||
}
|
||||
@@ -505,6 +501,21 @@ public class PyFormatterTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-12938
|
||||
public void testDoubleHashCommentIgnored() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-12938
|
||||
public void testDocCommentIgnored() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-12775
|
||||
public void testShebangCommentIgnored() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
/**
|
||||
* This test merely checks that call to {@link com.intellij.psi.codeStyle.CodeStyleManager#reformat(com.intellij.psi.PsiElement)}
|
||||
* is possible for Python sources.
|
||||
|
||||
Reference in New Issue
Block a user