add test for properties

This commit is contained in:
2018-04-11 08:40:59 +02:00
parent a1bb6370ca
commit 51d420b29d
4 changed files with 24 additions and 8 deletions

View File

@ -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)