Skip to content

Commit

Permalink
Remove extra newline
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Jul 5, 2022
1 parent 0232b2b commit 21b51aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_pretty.py
Expand Up @@ -550,16 +550,19 @@ def test_tuple_rich_repr():
"""
Test that can use None as key to have tuple positional values.
"""

class Foo:
def __rich_repr__(self):
yield None, (1,)

assert pretty_repr(Foo()) == "Foo((1,))"


def test_tuple_rich_repr_default():
"""
Test that can use None as key to have tuple positional values and with a default.
"""

class Foo:
def __rich_repr__(self):
yield None, (1,), (1,)
Expand Down

0 comments on commit 21b51aa

Please sign in to comment.