コード例 #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)
コード例 #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)
コード例 #3
0
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq = FakeSTMessenger()
    s._queue_sleep(scan_task)
コード例 #4
0
ファイル: test_scanning.py プロジェクト: Marzona/rig-remote
def test_delay(scan_task, FakeSTMessenger):
    s = Scanning()
    scan_task.scanq=FakeSTMessenger()
    s._queue_sleep(scan_task)
コード例 #5
0
ファイル: test_scanning.py プロジェクト: Marzona/rig-remote
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)
コード例 #6
0
ファイル: test_scanning.py プロジェクト: Marzona/rig-remote
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)