Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestCase like health checks #2

Merged
merged 3 commits into from Mar 1, 2013

Conversation

benoitbryon
Copy link
Member

This pull-request is based on #1.

Introduced a HealthCheck class, which is simply a subclass of unittest.TestCase with a is_healthcheck attribute set to True.

Added a sample healthcheck in demo project: https://github.com/novagile/django-doctor/blob/f4fbbb7ce0f702043032c77bb62e223b93a31df7/demo/django_doctor_demo/healthchecks.py (yes, it is really simple for now)

Added make healthcheck feature: https://github.com/novagile/django-doctor/blob/f4fbbb7ce0f702043032c77bb62e223b93a31df7/Makefile#L70

And modified make test so that it skips health checks: https://github.com/novagile/django-doctor/blob/f4fbbb7ce0f702043032c77bb62e223b93a31df7/demo/django_doctor_demo/settings.py#L77

jonklo added a commit that referenced this pull request Mar 1, 2013
@jonklo jonklo merged commit e2cf4a5 into python-hospital:master Mar 1, 2013
@benoitbryon benoitbryon modified the milestone: <= 0.3.0 Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants