diff --git a/tests/unit/test_run_stitchee.py b/tests/unit/test_run_stitchee.py index 42f5ec4..b5377c2 100644 --- a/tests/unit/test_run_stitchee.py +++ b/tests/unit/test_run_stitchee.py @@ -31,7 +31,7 @@ class TestBatching: __harmony_path = __data_path.joinpath("harmony") __granules_path = __harmony_path.joinpath("granules") - def test_run_stitchee_cli_with_no_error(self, temp_output_dir): + def test_run_stitchee_cli_with_three_filepaths(self, temp_output_dir): test_args = [ concatenator.run_stitchee.__file__, path_str( @@ -55,3 +55,20 @@ def test_run_stitchee_cli_with_no_error(self, temp_output_dir): with patch.object(sys, "argv", test_args): concatenator.run_stitchee.main() + + def test_run_stitchee_cli_with_one_directorypath(self, temp_output_dir): + test_args = [ + concatenator.run_stitchee.__file__, + str(self.__granules_path), + "--copy_input_files", + "--verbose", + "-o", + path_str(temp_output_dir, "test_run_stitchee_output.nc"), + "--concat_method", + "xarray-concat", + "--concat_dim", + "mirror_step", + ] + + with patch.object(sys, "argv", test_args): + concatenator.run_stitchee.main()