示例#1
0
def test_scribe_finish():
    q = context.Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() is True
    q.put(None)
    time.sleep(0.1)
    assert s.is_alive() is False
示例#2
0
def test_scribe_stop():
    q = Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() == True
    s.stop()
    assert s.is_alive() == False
示例#3
0
def test_scribe_stop():
    q = context.Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() is True
    s.stop()
    assert s.is_alive() is False
示例#4
0
def test_scribe_stop():
    q = context.Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() is True
    s.stop()
    assert s.is_alive() is False
示例#5
0
def test_scribe_finish():
    q = context.Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() is True
    q.put(None)
    time.sleep(0.1)
    assert s.is_alive() is False
示例#6
0
def test_scribe_finish():
    q = Queue()
    s = Scribe(q)
    s.start()
    assert s.is_alive() == True
    q.put(None)
    sleep(0.1)
    assert s.is_alive() == False


# TODO: Add tests for logging convenience functions and TopicQueueHandler