aboutsummaryrefslogtreecommitdiff
path: root/datamaps/tests/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'datamaps/tests/test_cli.py')
-rw-r--r--datamaps/tests/test_cli.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/datamaps/tests/test_cli.py b/datamaps/tests/test_cli.py
index a3a832f..aed9d56 100644
--- a/datamaps/tests/test_cli.py
+++ b/datamaps/tests/test_cli.py
@@ -20,6 +20,16 @@ def _copy_resources_to_input(config, directory):
)
+def test_can_run_validation_only_template_import(mock_config, resource_dir, caplog):
+ runner = CliRunner()
+ mock_config.initialise()
+ caplog.set_level(logging.INFO)
+ _copy_resources_to_input(mock_config, resource_dir)
+ result = runner.invoke(_import, ["templates", "-v"])
+ assert result.exit_code == 0
+ assert "No output file required." in [x[2] for x in caplog.record_tuples]
+
+
def test_import_from_user_defined_source_dir(
mock_config, resource_dir, caplog, temp_input_dir
):