add test for properties
This commit is contained in:
@ -376,7 +376,8 @@ class Settings(object):
|
||||
opt.impl_getrequires(),
|
||||
index,
|
||||
False,
|
||||
config_bag)
|
||||
config_bag,
|
||||
opt.impl_get_display_name())
|
||||
props -= self.getpermissive(opt,
|
||||
path)
|
||||
if apply_requires and config_bag.setting_properties is not None and \
|
||||
@ -410,7 +411,7 @@ class Settings(object):
|
||||
index,
|
||||
readable,
|
||||
config_bag,
|
||||
name=None):
|
||||
name):
|
||||
"""carries out the jit (just in time) requirements between options
|
||||
|
||||
a requirement is a tuple of this form that comes from the option's
|
||||
@ -514,7 +515,7 @@ class Settings(object):
|
||||
'').format(name,
|
||||
option.impl_get_display_name(),
|
||||
prop_msg,
|
||||
display_list(list(properties))))
|
||||
display_list(list(properties), add_quote=True)))
|
||||
# transitive action, add action
|
||||
if operator != 'and':
|
||||
if readable:
|
||||
@ -522,7 +523,8 @@ class Settings(object):
|
||||
err._requires,
|
||||
err._index,
|
||||
True,
|
||||
err._config_bag).values():
|
||||
err._config_bag,
|
||||
err._name).values():
|
||||
calc_properties.setdefault(action, []).extend(msg)
|
||||
else:
|
||||
calc_properties.add(action)
|
||||
|
Reference in New Issue
Block a user