-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(airflow): Remove bootstrap_project
#599
Changes from all commits
e7736b8
3c3ef42
e7f0122
781a2aa
c36c96e
65888be
d838ce6
c9b7e0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,8 @@ | |
from shutil import copyfile | ||
|
||
from click.testing import CliRunner | ||
from kedro import __version__ as kedro_version | ||
from kedro.framework.cli.starters import create_cli as kedro_cli | ||
from kedro.framework.startup import ProjectMetadata | ||
from kedro.framework.startup import bootstrap_project | ||
from pytest import fixture | ||
|
||
|
||
|
@@ -99,14 +98,6 @@ def register_pipelines(): | |
@fixture(scope="session") | ||
def metadata(kedro_project): | ||
# cwd() depends on ^ the isolated filesystem, created by CliRunner() | ||
project_path = kedro_project | ||
return ProjectMetadata( | ||
source_dir=project_path / "src", | ||
config_file=project_path / "pyproject.toml", | ||
package_name="hello_world", | ||
project_name="Hello world !!!", | ||
kedro_init_version=kedro_version, | ||
project_path=project_path, | ||
tools=["None"], | ||
example_pipeline="No", | ||
) | ||
project_path = kedro_project.resolve() | ||
metadata = bootstrap_project(project_path) | ||
return metadata | ||
Comment on lines
+101
to
+103
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this now necessary for the test setup because we don't call There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, since we don't do it in the plugin code, it's necessary for the unit tests to run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The target path shouldn't be resolved relative to the current directory at this point because it needs to be joined with the
metadata.project_path
later on.