We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3e416 commit 9f465caCopy full SHA for 9f465ca
fprettify/tests/__init__.py
@@ -149,6 +149,13 @@ def test_whitespace(self):
149
args = ['-w', str(w)]
150
self.assert_fprettify_result(args, instring, out)
151
152
+ def test_type_selector(self):
153
+ """test for whitespace formatting option -w 4"""
154
+ instring = "A%component=func(mytype%a,mytype%abc+mytype%abcd)"
155
+ outstring_exp = "A % component = func(mytype % a, mytype % abc + mytype % abcd)"
156
+
157
+ self.assert_fprettify_result(['-w 4'], instring, outstring_exp)
158
159
def test_indent(self):
160
"""simple test for indent options -i in [0, 3, 4]"""
161
0 commit comments