Exemple #1
0
def test_tune():
    st = scan_task()
    st.passes = 4
    log = LogFile()
    freq = "test"
    s = Scanning()
    with pytest.raises(ValueError):
        s._frequency_tune(st, freq)
Exemple #2
0
def test_tune():
    st = scan_task()
    st.passes = 4
    log = LogFile()
    freq = "test"
    s = Scanning()
    with pytest.raises(ValueError):
        s._frequency_tune(st, freq)
Exemple #3
0
def test_2_tune():
    st = scan_task()
    st.passes = 4
    log = LogFile()
    freq = st.params["range_min"]
    s = Scanning()
    try:
        s._frequency_tune(st, freq)
    except Exception:
        pass
    assert (s.scan_active == False)
Exemple #4
0
def test_2_tune():
    st = scan_task()
    st.passes = 4
    log = LogFile()
    freq = st.params["range_min"]
    s = Scanning()
    try:
        s._frequency_tune(st, freq)
    except Exception:
        pass
    assert (s.scan_active == False)