@@ -90,7 +90,7 @@ def test_checkout_branch_noref_success(mock__get_branch_reference, mock_subproc_
90
90
mock_subproc_popen .return_value = process_mock
91
91
92
92
# When
93
- actual_response = Git (root_dir = '/bin' ).checkout_branch (branchname = branch , current_path = curr_path )
93
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (branchname = branch , current_path = curr_path )
94
94
95
95
# Then
96
96
mock__get_branch_reference .assert_has_calls ([ call (branch , curr_path ) ])
@@ -120,7 +120,7 @@ def test_checkout_branch_noref_failure(mock__get_branch_reference, mock_subproc_
120
120
mock_subproc_popen .return_value = process_mock
121
121
122
122
# When
123
- actual_response = Git (root_dir = '/bin' ).checkout_branch (branchname = branch , current_path = curr_path )
123
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (branchname = branch , current_path = curr_path )
124
124
125
125
# Then
126
126
mock__get_branch_reference .assert_has_calls ([ call (branch , curr_path ) ])
@@ -153,7 +153,7 @@ def test_checkout_branch_remoteref_success(mock__get_branch_reference, mock_subp
153
153
mock_subproc_popen .return_value = process_mock
154
154
155
155
# When
156
- actual_response = Git (root_dir = '/bin' ).checkout_branch (branchname = branch , current_path = curr_path )
156
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (branchname = branch , current_path = curr_path )
157
157
158
158
# Then
159
159
mock__get_branch_reference .assert_has_calls ([ call (branch , curr_path ) ])
@@ -182,7 +182,7 @@ def test_checkout_branch_headsref_failure(mock__get_branch_reference, mock_subpr
182
182
mock_subproc_popen .return_value = process_mock
183
183
184
184
# When
185
- actual_response = Git (root_dir = '/bin' ).checkout_branch (branchname = branch , current_path = curr_path )
185
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (branchname = branch , current_path = curr_path )
186
186
187
187
# Then
188
188
mock__get_branch_reference .assert_has_calls ([ call (branch , curr_path ) ])
@@ -213,7 +213,7 @@ def test_checkout_branch_headsref_success(mock__get_branch_reference, mock_subpr
213
213
mock_subproc_popen .return_value = process_mock
214
214
215
215
# When
216
- actual_response = Git (root_dir = '/bin' ).checkout_branch (
216
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (
217
217
branchname = branch ,
218
218
current_path = 'test_curr_path' )
219
219
@@ -241,7 +241,7 @@ def test_checkout_branch_remoteref_failure(mock__get_branch_reference, mock_subp
241
241
mock_subproc_popen .return_value = process_mock
242
242
243
243
# When
244
- actual_response = Git (root_dir = '/bin' ).checkout_branch (branchname = branch , current_path = 'test_curr_path' )
244
+ actual_response = Git (FakeContentManager ( '/bin' ) ).checkout_branch (branchname = branch , current_path = 'test_curr_path' )
245
245
246
246
# Then
247
247
cmd = ['git' , 'checkout' , '--track' , branch ]
@@ -268,7 +268,7 @@ def test_get_branch_reference_success(mock_subproc_popen):
268
268
mock_subproc_popen .return_value = process_mock
269
269
270
270
# When
271
- actual_response = Git (root_dir = '/bin' )._get_branch_reference (
271
+ actual_response = Git (FakeContentManager ( '/bin' ) )._get_branch_reference (
272
272
branchname = branch ,
273
273
current_path = 'test_curr_path' )
274
274
@@ -303,7 +303,7 @@ def test_get_branch_reference_failure(mock_subproc_popen):
303
303
mock_subproc_popen .return_value = process_mock
304
304
305
305
# When
306
- actual_response = Git (root_dir = '/bin' )._get_branch_reference (
306
+ actual_response = Git (FakeContentManager ( '/bin' ) )._get_branch_reference (
307
307
branchname = branch ,
308
308
current_path = 'test_curr_path' )
309
309
0 commit comments