1010from .helpers import clear_memory_fs
1111from .helpers import make_test_dataset
1212
13- expected_help_text = """
14- Usage: zappend [OPTIONS] [SLICES]...
15-
16- Create or update a Zarr datacube TARGET from slice datasets SLICES.
17-
18- Options:
19- -c, --config CONFIG Configuration JSON or YAML file. If multiple are
20- passed, subsequent configurations are incremental to
21- the previous ones.
22- -t, --target TARGET Target Zarr dataset path or URI. Overrides the
23- 'target_dir' configuration field.
24- --dry-run Run the tool without creating, changing, or deleting
25- any files.
26- --help-config json|md Show configuration help and exit.
27- --help Show this message and exit.
28- """
29-
30- # remove indent
31- expected_help_text = expected_help_text .replace ("\n " , "\n " ).lstrip ("\n " )
32-
3313
3414class CliTest (unittest .TestCase ):
3515 def setUp (self ):
@@ -40,7 +20,7 @@ def test_help(self):
4020 # noinspection PyTypeChecker
4121 result = runner .invoke (zappend , ["--help" ])
4222 self .assertEqual (0 , result .exit_code )
43- self .assertEqual ( expected_help_text , result .output )
23+ self .assertIn ( "subsequent configurations are incremental" , result .output )
4424
4525 def test_help_config (self ):
4626 runner = CliRunner ()
0 commit comments