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

Fix format #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def pytest_configure():
}
},
DATABASES={
"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "db.sqlite",},
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "db.sqlite",
},
},
MIDDLEWARE=(
"django.contrib.sessions.middleware.SessionMiddleware",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ def test_check_cache_default_down(settings):
"""
cache.caches = cache.CacheHandler()
settings.CACHES = {
"default": {"BACKEND": "django.core.cache.backends.dummy.DummyCache",}
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}
assert not contrib.check_cache_default()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.urls import include, path
from django.contrib import admin
from django.urls import include, path

import django_healthchecks.urls

Expand Down
16 changes: 13 additions & 3 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def test_service_view_bool(rf, settings):
def test_service_view_bytes(rf, settings):
# This tests the serilization contraints
settings.HEALTH_CHECKS = OrderedDict(
[("ip", "django_healthchecks.contrib.check_remote_addr"),]
[
("ip", "django_healthchecks.contrib.check_remote_addr"),
]
)

request = rf.get("/")
Expand All @@ -65,7 +67,11 @@ def test_service_view_bytes(rf, settings):

def test_service_view_int(rf, settings):
# This tests the serilization contraints
settings.HEALTH_CHECKS = OrderedDict([("val", check_int),])
settings.HEALTH_CHECKS = OrderedDict(
[
("val", check_int),
]
)

request = rf.get("/")
view = views.HealthCheckServiceView()
Expand All @@ -78,7 +84,11 @@ def test_service_view_int(rf, settings):

def test_service_view_float(rf, settings):
# This tests the serilization contraints
settings.HEALTH_CHECKS = OrderedDict([("val", check_float),])
settings.HEALTH_CHECKS = OrderedDict(
[
("val", check_float),
]
)

request = rf.get("/")
view = views.HealthCheckServiceView()
Expand Down