test max depth of None

This commit is contained in:
Will McGugan 2022-01-06 15:07:05 +00:00
parent 3999c8a8e6
commit bff7981788
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ def test_max_depth():
pretty_repr(d, max_width=100, max_depth=5)
== "{'foo': {'fob': {'a': [1, 2, 3], 'b': {'z': 'x', 'y': ['a', 'b', 'c']}}}}"
)
assert (
pretty_repr(d, max_width=100, max_depth=None)
== "{'foo': {'fob': {'a': [1, 2, 3], 'b': {'z': 'x', 'y': ['a', 'b', 'c']}}}}"
)
def test_max_depth_rich_repr():