Skip to content

Commit ac21950

Browse files
committed
tests: Set maxDiff
Make it easier to visualize. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent f099fe3 commit ac21950

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_formatter.py

+12
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ def cli():
593593
class GroupTestCase(unittest.TestCase):
594594
"""Validate basic ``click.Group`` instances."""
595595

596+
maxDiff = None
597+
596598
def test_no_parameters(self):
597599
"""Validate a `click.Group` with no parameters.
598600
@@ -685,6 +687,8 @@ def cli():
685687
class NestedCommandsTestCase(unittest.TestCase):
686688
"""Validate ``click.Command`` instances inside ``click.Group`` instances."""
687689

690+
maxDiff = None
691+
688692
@staticmethod
689693
def _get_ctx():
690694
@click.group()
@@ -779,6 +783,8 @@ def test_nested_none(self):
779783
class CommandFilterTestCase(unittest.TestCase):
780784
"""Validate filtering of commands."""
781785

786+
maxDiff = None
787+
782788
@staticmethod
783789
def _get_ctx():
784790
@click.group()
@@ -851,6 +857,8 @@ def test_order_of_commands(self):
851857
class CustomMultiCommandTestCase(unittest.TestCase):
852858
"""Validate ``click.MultiCommand`` instances."""
853859

860+
maxDiff = None
861+
854862
def test_basics(self):
855863
"""Validate a custom ``click.MultiCommand`` with no parameters.
856864
@@ -967,6 +975,8 @@ def get_command(self, ctx, name):
967975
class CommandCollectionTestCase(unittest.TestCase):
968976
"""Validate ``click.CommandCollection`` instances."""
969977

978+
maxDiff = None
979+
970980
def test_basics(self):
971981
"Validate a ``click.CommandCollection`` with grouped outputs."
972982

@@ -1038,6 +1048,8 @@ def world():
10381048
class AutoEnvvarPrefixTestCase(unittest.TestCase):
10391049
"""Validate ``click auto_envvar_prefix``-setup instances."""
10401050

1051+
maxDiff = None
1052+
10411053
def test_basics(self):
10421054
"""Validate a click application with ``auto_envvar_prefix`` option enabled."""
10431055

0 commit comments

Comments
 (0)