Skip to content

Commit b7abd18

Browse files
authored
Merge pull request #403 from pycontribs/fix/azure
Assure we have HOME defined during testing
2 parents 9ce6b9f + 3720994 commit b7abd18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/check_added_large_files_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def has_gitlfs():
7676

7777

7878
@xfailif_no_gitlfs
79-
def test_allows_gitlfs(temp_git_dir): # pragma: no cover
79+
def test_allows_gitlfs(temp_git_dir, monkeypatch): # pragma: no cover
8080
with temp_git_dir.as_cwd():
81+
monkeypatch.setenv(str('HOME'), str(temp_git_dir.strpath))
8182
cmd_output('git', 'lfs', 'install')
8283
temp_git_dir.join('f.py').write('a' * 10000)
8384
cmd_output('git', 'lfs', 'track', 'f.py')
@@ -87,8 +88,9 @@ def test_allows_gitlfs(temp_git_dir): # pragma: no cover
8788

8889

8990
@xfailif_no_gitlfs
90-
def test_moves_with_gitlfs(temp_git_dir): # pragma: no cover
91+
def test_moves_with_gitlfs(temp_git_dir, monkeypatch): # pragma: no cover
9192
with temp_git_dir.as_cwd():
93+
monkeypatch.setenv(str('HOME'), str(temp_git_dir.strpath))
9294
cmd_output('git', 'lfs', 'install')
9395
cmd_output('git', 'lfs', 'track', 'a.bin', 'b.bin')
9496
# First add the file we're going to move

0 commit comments

Comments
 (0)