Beispiel #1
0
def test_pardon_failures(fresh_RE):
    RE = fresh_RE
    st = SimpleStatus()

    class Dummy:
        name = 'dummy'
        def set(self, val):
            return st

    dummy = Dummy()

    RE([Msg('set', dummy, 1)])
    st._finished(success=False)
    RE([Msg('null')])
Beispiel #2
0
def test_status_with_name():
    st = SimpleStatus()
    pbar = ProgressBar([st])
    st._finished()

    st = SimpleStatus()
    pbar = ProgressBar([st])
    assert pbar.delay_draw == 0.2
    time.sleep(0.25)
    st._finished()
Beispiel #3
0
 def set(self, val):
     st = SimpleStatus()
     st._finished(success=False)
     return st