def test_can_get_flag_value():
    state = FeatureFlagsState(True)
    flag = { 'key': 'key' }
    state.add_flag(flag, 'value', 1, None, False)
    assert state.get_flag_value('key') == 'value'
示例#2
0
def test_can_get_flag_value():
    state = FeatureFlagsState(True)
    flag = {'key': 'key'}
    state.add_flag(flag, 'value', 1, None, False)
    assert state.get_flag_value('key') == 'value'
def test_returns_none_for_unknown_flag():
    state = FeatureFlagsState(True)
    assert state.get_flag_value('key') is None
示例#4
0
def test_returns_none_for_unknown_flag():
    state = FeatureFlagsState(True)
    assert state.get_flag_value('key') is None