Fix up test after merges

This commit is contained in:
Raoul Snyman 2017-11-14 23:55:57 -07:00
parent 1c10227c38
commit d05e39fc70
1 changed files with 3 additions and 2 deletions

View File

@ -115,13 +115,14 @@ class TestSettings(TestCase, TestMixin):
def test_save_existing_setting(self):
"""Test that saving an existing setting returns the new value"""
# GIVEN: An existing setting
Settings().extend_default_settings({'test/existing value': None})
Settings().setValue('test/existing value', 'old value')
# WHEN a new value is saved into config
Settings().setValue('test/extend', 'new value')
Settings().setValue('test/existing value', 'new value')
# THEN the new value is returned when re-read
assert Settings().value('test/extend') == 'new value', 'The saved value should be returned'
assert Settings().value('test/existing value') == 'new value', 'The saved value should be returned'
def test_settings_override_with_group(self):
"""Test the Settings creation and its override usage - with groups"""