Fix test_set_wrong_backend

This commit is contained in:
Florian Bruhin 2018-06-23 17:25:30 +02:00
parent ad19833e34
commit 77fe2e1c85

View File

@ -642,8 +642,8 @@ class TestConfig:
meth = getattr(conf, method)
with pytest.raises(configexc.BackendError):
with qtbot.assert_not_emitted(conf.changed):
meth('content.cookies.accept', 'all')
assert not conf._values['content.cookies.accept']
meth('hints.find_implementation', 'javascript')
assert not conf._values['hints.find_implementation']
@pytest.mark.parametrize('method, value', [
('set_obj', {}),