예제 #1
0
def test_no_warmup(m_run, m_wsgi):
    pyuwsgi.Command().run_from_argv([])
    assert m_wsgi.call_count == 0
    assert m_run.call_count == 1
예제 #2
0
def test_healthcheck_ok(m_run):
    pyuwsgi.Command().run_from_argv([])
    assert m_run.call_count == 1
예제 #3
0
def test_healthcheck_fail(m_start):
    with pytest.raises(WarmupFailure):
        pyuwsgi.Command().run_from_argv([])