Skip to content

Commit

Permalink
tests: Set maxDiff
Browse files Browse the repository at this point in the history
Make it easier to visualize.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed May 14, 2024
1 parent f099fe3 commit ac21950
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ def cli():
class GroupTestCase(unittest.TestCase):
"""Validate basic ``click.Group`` instances."""

maxDiff = None

def test_no_parameters(self):
"""Validate a `click.Group` with no parameters.
Expand Down Expand Up @@ -685,6 +687,8 @@ def cli():
class NestedCommandsTestCase(unittest.TestCase):
"""Validate ``click.Command`` instances inside ``click.Group`` instances."""

maxDiff = None

@staticmethod
def _get_ctx():
@click.group()
Expand Down Expand Up @@ -779,6 +783,8 @@ def test_nested_none(self):
class CommandFilterTestCase(unittest.TestCase):
"""Validate filtering of commands."""

maxDiff = None

@staticmethod
def _get_ctx():
@click.group()
Expand Down Expand Up @@ -851,6 +857,8 @@ def test_order_of_commands(self):
class CustomMultiCommandTestCase(unittest.TestCase):
"""Validate ``click.MultiCommand`` instances."""

maxDiff = None

def test_basics(self):
"""Validate a custom ``click.MultiCommand`` with no parameters.
Expand Down Expand Up @@ -967,6 +975,8 @@ def get_command(self, ctx, name):
class CommandCollectionTestCase(unittest.TestCase):
"""Validate ``click.CommandCollection`` instances."""

maxDiff = None

def test_basics(self):
"Validate a ``click.CommandCollection`` with grouped outputs."

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

maxDiff = None

def test_basics(self):
"""Validate a click application with ``auto_envvar_prefix`` option enabled."""

Expand Down

0 comments on commit ac21950

Please sign in to comment.