Skip to content

Commit c29b4df

Browse files
Try to fix a single test: test_status.py.
1 parent 6a561db commit c29b4df

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

jupyterlab_git/tests/test_status.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import pytest
44

5+
import os
6+
57
# local lib
68
from jupyterlab_git.git import Git
79

@@ -375,7 +377,7 @@ async def test_status(tmp_path, output, diff_output, expected):
375377
["git", "status", "--porcelain", "-b", "-u", "-z"],
376378
cwd=str(repository),
377379
timeout=20,
378-
env=None,
380+
env=os.environ.copy(),
379381
username=None,
380382
password=None,
381383
is_binary=False,
@@ -391,7 +393,7 @@ async def test_status(tmp_path, output, diff_output, expected):
391393
],
392394
cwd=str(repository),
393395
timeout=20,
394-
env=None,
396+
env=os.environ.copy(),
395397
username=None,
396398
password=None,
397399
is_binary=False,
@@ -400,7 +402,7 @@ async def test_status(tmp_path, output, diff_output, expected):
400402
["git", "show", "--quiet", "CHERRY_PICK_HEAD"],
401403
cwd=str(repository),
402404
timeout=20,
403-
env=None,
405+
env=os.environ.copy(),
404406
username=None,
405407
password=None,
406408
is_binary=False,
@@ -409,7 +411,7 @@ async def test_status(tmp_path, output, diff_output, expected):
409411
["git", "show", "--quiet", "MERGE_HEAD"],
410412
cwd=str(repository),
411413
timeout=20,
412-
env=None,
414+
env=os.environ.copy(),
413415
username=None,
414416
password=None,
415417
is_binary=False,
@@ -418,7 +420,7 @@ async def test_status(tmp_path, output, diff_output, expected):
418420
["git", "rev-parse", "--git-path", "rebase-merge"],
419421
cwd=str(repository),
420422
timeout=20,
421-
env=None,
423+
env=os.environ.copy(),
422424
username=None,
423425
password=None,
424426
is_binary=False,
@@ -427,7 +429,7 @@ async def test_status(tmp_path, output, diff_output, expected):
427429
["git", "rev-parse", "--git-path", "rebase-apply"],
428430
cwd=str(repository),
429431
timeout=20,
430-
env=None,
432+
env=os.environ.copy(),
431433
username=None,
432434
password=None,
433435
is_binary=False,

0 commit comments

Comments
 (0)