mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-14962 Add tests for new dict formatting options
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"a": 1,
|
||||
"bbb": [
|
||||
2
|
||||
],
|
||||
"bbbbb": 3
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"a" : 1,
|
||||
"bbb" : [
|
||||
2
|
||||
],
|
||||
"bbbbb": 3
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"a": 1,
|
||||
"bbb": [
|
||||
2
|
||||
],
|
||||
"bbbbb": 3
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"a": 1,
|
||||
"bbb": [
|
||||
2
|
||||
],
|
||||
"bbbbb": 3
|
||||
}
|
||||
@@ -567,6 +567,18 @@ public class PyFormatterTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-14962
|
||||
public void testAlignDictLiteralOnValue() {
|
||||
getCustomSettings().DICT_ALIGNMENT = PyCodeStyleSettings.DICT_ALIGNMENT_ON_VALUE;
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-14962
|
||||
public void testAlignDictLiteralOnColon() {
|
||||
getCustomSettings().DICT_ALIGNMENT = PyCodeStyleSettings.DICT_ALIGNMENT_ON_COLON;
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-15530
|
||||
public void testAlignmentInArgumentListWhereFirstArgumentIsEmptyCall() {
|
||||
doTest();
|
||||
|
||||
Reference in New Issue
Block a user