示例#1
0
def test_multiply_int_setting(mocker):
    i = settings.IntSetting("int", 5)
    i *= 2
    assert i.value == 10
示例#2
0
def test_set_int_setting_str(mocker):
    i = settings.IntSetting("int", 1)
    i.value = "2"
    assert i.value == 2
示例#3
0
def test_add_int_setting(mocker):
    i = settings.IntSetting("int", 2)
    i += 3
    assert i.value == 5
示例#4
0
def test_set_int_setting(value):
    i = settings.IntSetting("int", 1)
    i.value = value
    assert i.value == 2