diff --git a/tests/test_config.py b/tests/test_config.py index 2af8d1cd8e3f3f2e2d22117178365b21914682cd..c771ac26781c71f30b2ecb4404bd966846b13e90 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -73,13 +73,13 @@ def update_environ(**kwargs): _update_environ(revert) def test_repository_from_environment(): - with update_environ(CONSERVANCY_REPOSITORY='/usr/local'): - config = config_mod.Config() - assert config.repository_path().parts == ('/', 'usr', 'local') + config = config_mod.Config() + assert config.repository_path() == testutil.test_path('repository') def test_no_repository(): - config = config_mod.Config() - assert config.repository_path() is None + with update_environ(CONSERVANCY_REPOSITORY=None): + config = config_mod.Config() + assert config.repository_path() is None def test_no_rt_credentials(): with update_environ(HOME=testutil.TESTS_DIR):