Upgrade add-trailing-comma to 0.4.1

This commit is contained in:
Anthony Sottile 2017-07-15 12:56:51 -07:00
parent ea227f024b
commit e9aea74a77
11 changed files with 94 additions and 63 deletions

View file

@ -22,16 +22,20 @@ TESTS = (
# Docstring
('""" Foo """', '""" Foo """', 0),
(
textwrap.dedent("""
textwrap.dedent(
"""
x = " \\
foo \\
"\n
"""),
textwrap.dedent("""
""",
),
textwrap.dedent(
"""
x = ' \\
foo \\
'\n
"""),
""",
),
1,
),
('"foo""bar"', "'foo''bar'", 1),