tests: Fix default_config fixture

This wasn't used since the command tests were deactivated. It was broken
during some refactoring and nobody noticed.
This commit is contained in:
Florian Bruhin 2016-07-13 13:42:40 +02:00
parent c83a8a64dc
commit f5359b67a2

View File

@ -184,7 +184,8 @@ def config_stub(stubs):
@pytest.yield_fixture
def default_config():
"""Fixture that provides and registers an empty default config object."""
config_obj = config.ConfigManager(configdir=None, fname=None, relaxed=True)
config_obj = config.ConfigManager()
config_obj.read(configdir=None, fname=None, relaxed=True)
objreg.register('config', config_obj)
yield config_obj
objreg.delete('config')