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

Changed 'url' instances in docs and tests to 'path'. #302

Open
wants to merge 3 commits 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
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Add the health checker to a URL you want to use:

urlpatterns = [
# ...
url(r'^ht/', include('health_check.urls')),
path('ht/', include('health_check.urls')),
]

Add the ``health_check`` applications to your ``INSTALLED_APPS``:
Expand Down Expand Up @@ -268,7 +268,7 @@ and customizing the ``template_name``, ``get``, ``render_to_response`` and ``ren

urlpatterns = [
# ...
url(r'^ht/$', views.HealthCheckCustomView.as_view(), name='health_check_custom'),
path('ht/', views.HealthCheckCustomView.as_view(), name='health_check_custom'),
]

Django command
Expand Down
2 changes: 1 addition & 1 deletion docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add it to your URL:

urlpatterns = [
# ...
url(r'^ht/super_secret_token/'), include('health_check.urls')),
path('ht/super_secret_token/'), include('health_check.urls')),
]

You can still use any uptime bot that is URL based while enjoying token protection.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def check_status(self):


class TestCommand:
@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def setup(self):
plugin_dir.reset()
plugin_dir.register(FailPlugin)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Checker(CheckMixin):


class TestCheckMixin:
@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def setup(self):
plugin_dir.reset()
plugin_dir.register(FailPlugin)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def check_status(self):


class TestPlugin:
@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def setup(self):
plugin_dir.reset()
plugin_dir.register(FakePlugin)
Expand Down
4 changes: 2 additions & 2 deletions tests/testapp/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.urls import include, re_path
from django.urls import include, path

urlpatterns = [
re_path(r'^ht/', include('health_check.urls')),
path('ht/', include('health_check.urls')),
]