do not remove context user when reset config
This commit is contained in:
@ -347,6 +347,8 @@ def test_help():
|
||||
def test_config_reset():
|
||||
descr = make_description()
|
||||
c = Config(descr)
|
||||
c.owner.set('test')
|
||||
assert c.owner.get() == 'test'
|
||||
assert not c.option('gc.gc2.bool').value.get()
|
||||
assert not c.option('boolop').property.get()
|
||||
assert not c.option('boolop').permissive.get()
|
||||
@ -361,7 +363,9 @@ def test_config_reset():
|
||||
assert c.option('float').permissive.get()
|
||||
assert c.option('wantref').information.get('info', None)
|
||||
#
|
||||
assert c.owner.get() == 'test'
|
||||
c.config.reset()
|
||||
assert c.owner.get() == 'test'
|
||||
assert not c.option('gc.gc2.bool').value.get()
|
||||
assert not c.option('boolop').property.get()
|
||||
assert not c.option('float').permissive.get()
|
||||
|
Reference in New Issue
Block a user