2
2
3
3
import pytest
4
4
5
+ import os
6
+
5
7
# local lib
6
8
from jupyterlab_git .git import Git
7
9
@@ -375,7 +377,7 @@ async def test_status(tmp_path, output, diff_output, expected):
375
377
["git" , "status" , "--porcelain" , "-b" , "-u" , "-z" ],
376
378
cwd = str (repository ),
377
379
timeout = 20 ,
378
- env = None ,
380
+ env = os . environ . copy () ,
379
381
username = None ,
380
382
password = None ,
381
383
is_binary = False ,
@@ -391,7 +393,7 @@ async def test_status(tmp_path, output, diff_output, expected):
391
393
],
392
394
cwd = str (repository ),
393
395
timeout = 20 ,
394
- env = None ,
396
+ env = os . environ . copy () ,
395
397
username = None ,
396
398
password = None ,
397
399
is_binary = False ,
@@ -400,7 +402,7 @@ async def test_status(tmp_path, output, diff_output, expected):
400
402
["git" , "show" , "--quiet" , "CHERRY_PICK_HEAD" ],
401
403
cwd = str (repository ),
402
404
timeout = 20 ,
403
- env = None ,
405
+ env = os . environ . copy () ,
404
406
username = None ,
405
407
password = None ,
406
408
is_binary = False ,
@@ -409,7 +411,7 @@ async def test_status(tmp_path, output, diff_output, expected):
409
411
["git" , "show" , "--quiet" , "MERGE_HEAD" ],
410
412
cwd = str (repository ),
411
413
timeout = 20 ,
412
- env = None ,
414
+ env = os . environ . copy () ,
413
415
username = None ,
414
416
password = None ,
415
417
is_binary = False ,
@@ -418,7 +420,7 @@ async def test_status(tmp_path, output, diff_output, expected):
418
420
["git" , "rev-parse" , "--git-path" , "rebase-merge" ],
419
421
cwd = str (repository ),
420
422
timeout = 20 ,
421
- env = None ,
423
+ env = os . environ . copy () ,
422
424
username = None ,
423
425
password = None ,
424
426
is_binary = False ,
@@ -427,7 +429,7 @@ async def test_status(tmp_path, output, diff_output, expected):
427
429
["git" , "rev-parse" , "--git-path" , "rebase-apply" ],
428
430
cwd = str (repository ),
429
431
timeout = 20 ,
430
- env = None ,
432
+ env = os . environ . copy () ,
431
433
username = None ,
432
434
password = None ,
433
435
is_binary = False ,
0 commit comments