-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Followup fixes to new test suite/CI (#30)
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,9 +77,12 @@ def project(answers, request, copie): | |
yield res.project_dir | ||
|
||
|
||
@pytest.fixture | ||
def project_committed(project): | ||
with local.cwd(project): | ||
git = local["git"]["-c", "commit.gpgsign=false"] | ||
git = local["git"][ | ||
"-c", "commit.gpgsign=false", "-c", "user.name=foobar", "-c", "[email protected]" | ||
] | ||
git("init") | ||
git("add", ".") | ||
git("commit", "-m", "initial commit") | ||
|
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 |
---|---|---|
|
@@ -43,8 +43,10 @@ def test_update_from_002_works(copie, project): | |
|
||
|
||
def _commit_with_pre_commit(venv, max_retry=3, message="initial commit"): | ||
git = local["git"]["-c", "commit.gpgsign=false"] | ||
venv.run("pre-commit", "install") | ||
git = local["git"][ | ||
"-c", "commit.gpgsign=false", "-c", "user.name=foobar", "-c", "[email protected]" | ||
] | ||
venv.run(venv.venv_python, "-m", "pre_commit", "install") | ||
retry_count = 1 | ||
saved_err = None | ||
|
||
|