mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
#N/A: Use real PATH
in tests
This commit is contained in:
parent
754bb3e21f
commit
5742d2d910
@ -1,3 +1,4 @@
|
||||
import os
|
||||
import pytest
|
||||
from thefuck import shells
|
||||
from thefuck import conf, const
|
||||
@ -63,6 +64,6 @@ def set_shell(monkeypatch, request):
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def os_environ(monkeypatch):
|
||||
env = {'PATH': ''}
|
||||
env = {'PATH': os.environ['PATH']}
|
||||
monkeypatch.setattr('os.environ', env)
|
||||
return env
|
||||
|
Loading…
x
Reference in New Issue
Block a user