Skip to content

Commit

Permalink
Remove all subdirectories inside tests/pipelines when no example chos…
Browse files Browse the repository at this point in the history
…en (#3956)

Signed-off-by: Merel Theisen <[email protected]>
  • Loading branch information
merelcht authored Jun 20, 2024
1 parent b7d2b96 commit e55828d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kedro/templates/project/hooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ def _remove_pyspark_viz_starter_files(is_viz: bool, python_package_name: str) ->
for pipeline_subdir in pipelines_to_remove:
_remove_dir(pipelines_path / pipeline_subdir)

# Remove all test files from tests/pipelines/
# Remove all test files and subdirectories from tests/pipelines/
test_pipeline_path = current_dir / "tests/pipelines/data_science/test_pipeline.py"
_remove_file(test_pipeline_path)
_remove_dir(current_dir / "tests/pipelines/data_science")


def _remove_extras_from_kedro_datasets(file_path: Path) -> None:
Expand Down

0 comments on commit e55828d

Please sign in to comment.