File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Here are ways to specify ``git_config``:
108
108
109
109
# Only providing 'repo' is also allowed. If this is the case, latest commit in
110
110
# 'master' branch will be used.
111
- git_config = {' repo' : ' https://github.com/username/repo-with-training-scripts.git'
111
+ git_config = {' repo' : ' https://github.com/username/repo-with-training-scripts.git' }
112
112
113
113
The following are some examples to define estimators with Git support:
114
114
Original file line number Diff line number Diff line change @@ -897,7 +897,13 @@ def test_git_support_bad_repo_url_format(sagemaker_session):
897
897
assert "returned non-zero exit status" in str (error )
898
898
899
899
900
- def test_git_support_git_clone_fail (sagemaker_session ):
900
+ @patch (
901
+ "subprocess.check_call" ,
902
+ side_effect = subprocess .CalledProcessError (
903
+ returncode = 1 , cmd = "git clone https://github.com/aws/no-such-repo.git"
904
+ ),
905
+ )
906
+ def test_git_support_git_clone_fail (check_call , sagemaker_session ):
901
907
git_config = {"repo" : "https://github.com/aws/no-such-repo.git" , "branch" : BRANCH }
902
908
fw = DummyFramework (
903
909
entry_point = "entry_point" ,
You can’t perform that action at this time.
0 commit comments