Skip to content

Commit

Permalink
[System test] Fix access to relative path (#3655)
Browse files Browse the repository at this point in the history
  • Loading branch information
alonmr committed May 29, 2023
1 parent 1afcb83 commit bdba955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/system/projects/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ def test_remote_from_archive(self):
def test_kfp_from_local_code(self):
name = "kfp-from-local-code"
self.custom_project_names_to_delete.append(name)

# change cwd to the current file's dir to make sure the handler file is found
current_file_abspath = os.path.abspath(__file__)
current_dirname = os.path.dirname(current_file_abspath)
os.chdir(current_dirname)

project = mlrun.get_or_create_project(name, user_project=True, context="./")

handler_fn = project.set_function(
Expand Down

0 comments on commit bdba955

Please sign in to comment.