Remove strings from vcs.clone tests
@@ -28,11 +28,11 @@ def test_clone_should_rstrip_trailing_slash_in_repo_url(mocker, clone_dir):
autospec=True,
)
- vcs.clone('https://github.com/foo/bar/', clone_to_dir=str(clone_dir), no_input=True)
+ vcs.clone('https://github.com/foo/bar/', clone_to_dir=clone_dir, no_input=True)
mock_subprocess.assert_called_once_with(
['git', 'clone', 'https://github.com/foo/bar'],
- cwd=str(clone_dir),
+ cwd=clone_dir,
stderr=subprocess.STDOUT,
)
@@ -114,13 +114,13 @@ def test_clone_should_invoke_vcs_command(
branch = 'foobar'
repo_dir = vcs.clone(
- repo_url, checkout=branch, clone_to_dir=str(clone_dir), no_input=True
+ repo_url, checkout=branch, clone_to_dir=clone_dir, no_input=True
)
assert repo_dir == expected_repo_dir
mock_subprocess.assert_any_call(
- [repo_type, 'clone', repo_url], cwd=str(clone_dir), stderr=subprocess.STDOUT
+ [repo_type, 'clone', repo_url], cwd=clone_dir, stderr=subprocess.STDOUT
)
branch_info = [branch]
