python-hospital / hospital

Tools to diagnose Python projects (supervision, monitoring).
Other
40 stars 8 forks source link

@smoketest decorator identifies smoke tests #35

Open benoitbryon opened 10 years ago

benoitbryon commented 10 years ago

This story is a first (and easy) step to #23. It may be enough, so let's try it.

The @hospital.smoketest decorator marks objects as is_healthcheck and is_smoketest. So it will be possible to collect and run only smoketests.

import hospital

@hospital.smoketest
def test_http_200():
    hospital.assert_http_response('http://example.com', status_code=200, timeout=1)
benoitbryon commented 10 years ago

Moved to milestone 0.5.