Reset standarddir args in TestConfigInit.

This caused test_transform_userstylesheet_base64 to fail.
This commit is contained in:
Florian Bruhin 2015-08-11 21:22:36 +02:00
parent 9c3c46f677
commit 15c5cf75cd

View File

@ -275,8 +275,10 @@ class TestConfigInit:
objreg.register('save-manager', mock.MagicMock())
args = argparse.Namespace(relaxed_config=False)
objreg.register('args', args)
old_standarddir_args = standarddir._args
yield
objreg.global_registry.clear()
standarddir._args = old_standarddir_args
def test_config_none(self, monkeypatch):
"""Test initializing with config path set to None."""