File diff 96ef7c9cbbef → 11552123765b
tests/conftest.py
Show inline comments
...
 
@@ -5,10 +5,11 @@ import pytest
 
from . import testutil
 

	
 
@pytest.fixture(scope='session', autouse=True)
 
def clean_environment():
 
def clean_environment(tmpdir_factory):
 
    os.environ.pop('RTAUTH', None)
 
    os.environ.pop('RTPASSWD', None)
 
    os.environ.pop('RTSERVER', None)
 
    os.environ.pop('RTUSER', None)
 
    os.environ['CONSERVANCY_REPOSITORY'] = str(testutil.test_path('repository'))
 
    os.environ['HOME'] = str(testutil.test_path('userconfig'))
 
    os.environ['XDG_CACHE_DIR'] = str(tmpdir_factory.mktemp('.cache'))