impl_get_values with calculated values and no context should return []
This commit is contained in:
@ -35,6 +35,8 @@ def test_choiceoption_function():
|
||||
assert cfg.getowner(ch) == owners.default
|
||||
raises(ValueError, "cfg.ch='no'")
|
||||
assert cfg.getowner(ch) == owners.default
|
||||
assert ch.impl_get_values(None) == []
|
||||
assert ch.impl_get_values(cfg) == ['val1', 'val2']
|
||||
|
||||
|
||||
def test_choiceoption_calc_function():
|
||||
|
Reference in New Issue
Block a user