2020-03-23 16:01:02 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
from . import testutil
|
|
|
|
|
|
|
|
@pytest.fixture(scope='session', autouse=True)
|
2020-03-25 19:15:38 +00:00
|
|
|
def clean_environment(tmpdir_factory):
|
2020-03-23 19:19:15 +00:00
|
|
|
os.environ.pop('RTAUTH', None)
|
|
|
|
os.environ.pop('RTPASSWD', None)
|
|
|
|
os.environ.pop('RTSERVER', None)
|
|
|
|
os.environ.pop('RTUSER', None)
|
2020-03-25 18:03:25 +00:00
|
|
|
os.environ['CONSERVANCY_REPOSITORY'] = str(testutil.test_path('repository'))
|
2020-03-23 19:19:15 +00:00
|
|
|
os.environ['HOME'] = str(testutil.test_path('userconfig'))
|
2020-04-10 12:24:34 +00:00
|
|
|
os.environ['XDG_CACHE_HOME'] = str(tmpdir_factory.mktemp('.cache'))
|