-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fallback to pull that also tries the HTTP URL
- Loading branch information
1 parent
c613200
commit e24e264
Showing
4 changed files
with
35 additions
and
15 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 |
---|---|---|
|
@@ -155,10 +155,13 @@ def try_add_remote(path_to_repo): | |
def try_initialize_from_remote(): | ||
if Path("test_repo_from_remote").exists(): | ||
delete_path("test_repo_from_remote") | ||
clone("https://jugit.fz-juelich.de/IBG-1/ModSim/cadet/rdm-examples-fraunhofer-ime-aachen", | ||
clone("[email protected]:ronald-jaepel/rdm_testing_template.git", | ||
"test_repo_from_remote") | ||
assert try_init_gitpython_repo("test_repo_from_remote") | ||
|
||
repo = ProjectRepo("test_repo_from_remote") | ||
assert hasattr(repo, "output_path") | ||
|
||
|
||
def test_init_over_existing_repo(monkeypatch): | ||
path_to_repo = Path("test_repo_2") | ||
|
@@ -275,7 +278,7 @@ def test_cadet_rdm(path_to_repo): | |
# because these depend on one-another and there is no native support afaik for sequential tests | ||
# these tests are called sequentially here as try_ functions. | ||
try_initialize_git_repo(path_to_repo) | ||
# try_initialize_from_remote() | ||
try_initialize_from_remote() | ||
|
||
try_add_remote(path_to_repo) | ||
# try_add_submodule(path_to_repo) | ||
|
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