Esempio n. 1
0
def test_queue_sleep_2(scan_task):
    # sillt test just to make sure that the while true actually ends.
    s = Scanning()
    scan_task.params['delay'] = "test"
    with pytest.raises(ValueError):
        s._queue_sleep(scan_task)
Esempio n. 2
0
def test_queue_sleep_1(scan_task, FakeSTMessenger):
    # sillt test just to make sure that the while true actually ends.
    s = Scanning()
    scan_task.params['delay'] = 1
    scan_task.scanq = FakeSTMessenger()
    s._queue_sleep(scan_task)
Esempio n. 3
0
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq = FakeSTMessenger()
    s._queue_sleep(scan_task)
Esempio n. 4
0
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq=FakeSTMessenger()
    s._queue_sleep(scan_task)
Esempio n. 5
0
def test_queue_sleep_2(scan_task):
    # sillt test just to make sure that the while true actually ends.
    s = Scanning()
    scan_task.params['delay'] = "test"
    with pytest.raises(ValueError):
        s._queue_sleep(scan_task)
Esempio n. 6
0
def test_queue_sleep_1(scan_task,FakeSTMessenger):
    # sillt test just to make sure that the while true actually ends.
    s = Scanning()
    scan_task.params['delay'] = 1
    scan_task.scanq=FakeSTMessenger()
    s._queue_sleep(scan_task)