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