This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-03-30 01:23:33 +00:00
|
|
|
Retain environment setting of "HOME" for tests that need os.path.expanduser()
|
|
|
|
to return a readable directory in the build chroot.
|
|
|
|
|
2018-03-07 05:33:57 +00:00
|
|
|
--- thefuck-3.25/tests/conftest.py
|
|
|
|
+++ thefuck-3.25/tests/conftest.py
|
|
|
|
@@ -64,6 +64,7 @@ def set_shell(monkeypatch):
|
2017-03-30 01:23:33 +00:00
|
|
|
|
2018-03-07 05:33:57 +00:00
|
|
|
@pytest.fixture(autouse=True)
|
|
|
|
def os_environ(monkeypatch):
|
|
|
|
- env = {'PATH': os.environ['PATH']}
|
|
|
|
+ env = {'PATH': os.environ['PATH'],
|
|
|
|
+ 'HOME': os.environ['HOME']}
|
|
|
|
monkeypatch.setattr('os.environ', env)
|
|
|
|
return env
|