Exemple #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)
Exemple #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)
Exemple #3
0
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq = FakeSTMessenger()
    s._queue_sleep(scan_task)
Exemple #4
0
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq=FakeSTMessenger()
    s._queue_sleep(scan_task)
Exemple #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)
Exemple #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)