-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): Rename parentdir -> repos_path
- Loading branch information
Showing
5 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,14 +122,14 @@ def progress_callback_spy(output, timestamp): | |
assert progress_callback.called | ||
|
||
|
||
def test_remotes(parentdir, git_remote): | ||
def test_remotes(repos_path, git_remote): | ||
repo_name = "myrepo" | ||
remote_name = "myremote" | ||
remote_url = "https://localhost/my/git/repo.git" | ||
|
||
git_repo = create_repo_from_pip_url( | ||
pip_url=f"git+file://{git_remote}", | ||
repo_dir=parentdir / repo_name, | ||
repo_dir=repos_path / repo_name, | ||
) | ||
git_repo.obtain() | ||
git_repo.set_remote(name=remote_name, url=remote_url) | ||
|
@@ -160,10 +160,10 @@ def test_git_get_url_and_rev_from_pip_url(): | |
assert rev == "eucalyptus" | ||
|
||
|
||
def test_remotes_preserves_git_ssh(parentdir, git_remote): | ||
def test_remotes_preserves_git_ssh(repos_path, git_remote): | ||
# Regression test for #14 | ||
repo_name = "myexamplegit" | ||
repo_dir = parentdir / repo_name | ||
repo_dir = repos_path / repo_name | ||
remote_name = "myremote" | ||
remote_url = "git+ssh://[email protected]/tony/AlgoXY.git" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters