|
6 | 6 |
|
7 | 7 |
|
8 | 8 | class CommandTestCase(unittest.TestCase):
|
| 9 | + """Validate basic ``click.Command`` instances.""" |
| 10 | + |
9 | 11 | def test_no_parameters(self):
|
10 | 12 | """Validate a `click.Command` with no parameters.
|
11 | 13 |
|
@@ -110,8 +112,7 @@ def foobar(bar):
|
110 | 112 | 'Allowing show_default to be a string was added in Click 7.0',
|
111 | 113 | )
|
112 | 114 | def test_defaults(self):
|
113 |
| - """Validate formatting of user documented defaults. |
114 |
| - """ |
| 115 | + """Validate formatting of user documented defaults.""" |
115 | 116 |
|
116 | 117 | @click.command()
|
117 | 118 | @click.option('--num-param', type=int, default=42, show_default=True)
|
@@ -215,6 +216,8 @@ def hello(name):
|
215 | 216 |
|
216 | 217 |
|
217 | 218 | class GroupTestCase(unittest.TestCase):
|
| 219 | + """Validate basic ``click.Group`` instances.""" |
| 220 | + |
218 | 221 | def test_no_parameters(self):
|
219 | 222 | """Validate a `click.Group` with no parameters.
|
220 | 223 |
|
@@ -349,6 +352,8 @@ def cli():
|
349 | 352 |
|
350 | 353 |
|
351 | 354 | class NestedCommandsTestCase(unittest.TestCase):
|
| 355 | + """Validate ``click.Command`` instances inside ``click.Group`` instances.""" |
| 356 | + |
352 | 357 | @staticmethod
|
353 | 358 | def _get_ctx():
|
354 | 359 | @click.group()
|
@@ -417,6 +422,8 @@ def test_show_nested(self):
|
417 | 422 |
|
418 | 423 |
|
419 | 424 | class CommandFilterTestCase(unittest.TestCase):
|
| 425 | + """Validate filtering of commands.""" |
| 426 | + |
420 | 427 | @staticmethod
|
421 | 428 | def _get_ctx():
|
422 | 429 | @click.group()
|
@@ -487,6 +494,8 @@ def test_order_of_commands(self):
|
487 | 494 |
|
488 | 495 |
|
489 | 496 | class CustomMultiCommandTestCase(unittest.TestCase):
|
| 497 | + """Validate ``click.MultiCommand`` instances.""" |
| 498 | + |
490 | 499 | def test_basics(self):
|
491 | 500 | """Validate a custom ``click.MultiCommand`` with no parameters.
|
492 | 501 |
|
|
0 commit comments