Skip to content

Commit

Permalink
Don't request user to add new pipeline to registry (#2198)
Browse files Browse the repository at this point in the history
Minor fix to docs, plus changes to output to remove messages.
  • Loading branch information
deepyaman authored Jan 12, 2023
1 parent fb2f316 commit 276f7cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion docs/source/get_started/new_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The nodes are stored in `src/get_started/nodes.py`:

### Visualise the project

This is a swift introduction to show how to visualise the project with Kedro-Viz. See the [visualisation documentation](../visualisation/kedro-viz_visualisation) for more detail.
This is a swift introduction to show how to visualise the project with Kedro-Viz. See the [visualisation documentation](../visualisation/kedro-viz_visualisation) for more detail.

The Kedro-Viz package needs to be installed separately as it is not part of the standard Kedro installation:

Expand Down
6 changes: 0 additions & 6 deletions kedro/framework/cli/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ def create_pipeline(
_copy_pipeline_configs(result_path, project_conf_path, skip_config, env=env)
click.secho(f"\nPipeline '{name}' was successfully created.\n", fg="green")

click.secho(
f"To be able to run the pipeline '{name}', you will need to add it "
f"""to 'register_pipelines()' in '{package_dir / "pipeline_registry.py"}'.""",
fg="yellow",
)


@command_with_verbosity(pipeline, "delete")
@click.argument("name", nargs=1, callback=_check_pipeline_name)
Expand Down
8 changes: 0 additions & 8 deletions tests/framework/cli/pipeline/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ def test_create_pipeline( # pylint: disable=too-many-locals
result = CliRunner().invoke(fake_project_cli, cmd, obj=fake_metadata)

assert result.exit_code == 0
assert (
f"To be able to run the pipeline '{PIPELINE_NAME}', you will need "
f"to add it to 'register_pipelines()'" in result.output
)

# pipeline
assert f"Creating the pipeline '{PIPELINE_NAME}': OK" in result.output
Expand Down Expand Up @@ -92,10 +88,6 @@ def test_create_pipeline_skip_config(

result = CliRunner().invoke(fake_project_cli, cmd, obj=fake_metadata)
assert result.exit_code == 0
assert (
f"To be able to run the pipeline '{PIPELINE_NAME}', you will need "
f"to add it to 'register_pipelines()'" in result.output
)
assert f"Creating the pipeline '{PIPELINE_NAME}': OK" in result.output
assert f"Pipeline '{PIPELINE_NAME}' was successfully created." in result.output

Expand Down

0 comments on commit 276f7cb

Please sign in to comment.