예제 #1
0
def test_interval_when_poll_sec_is_None():
    s = SettingsData(1, {"poll_sec": None})
    assert s.interval() == 600
예제 #2
0
def test_interval_when_poll_sec_is_greater_than_zero():
    s = SettingsData(1, {"poll_sec": 123})
    assert s.interval() == 123
예제 #3
0
def test_interval_when_no_poll_sec():
    s = SettingsData(1, {})
    assert s.interval() == 600
예제 #4
0
def test_interval_when_poll_sec_is_zero():
    s = SettingsData(1, {"poll_sec": 0})
    assert s.interval() == 600