Skip to content

Commit

Permalink
Add git config to GitHelper.py tests
Browse files Browse the repository at this point in the history
  • Loading branch information
this.is.a.name committed Jun 6, 2024
1 parent 9e76773 commit 90a784d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/helpers/test_GitHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def mocked_git_repository_clone(*args, **kwargs):
file.write("Test text goes here")

r = Repo.init(args[0])
r.git.execute(['git', 'config', '--global', 'user.email', 'this.is.an@example.com'])
r.git.execute(['git', 'config', '--global', 'user.name', 'this.is.a.name'])
r.git.add(all=True)
r.remote = mock.MagicMock()

Expand Down

0 comments on commit 90a784d

Please sign in to comment.