1
0
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:
Vladimir Iakovlev 2017-08-03 12:30:04 +02:00
parent 754bb3e21f
commit 5742d2d910

View File

@ -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