File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 2222from django_github_app .views import AsyncWebhookView
2323from django_github_app .views import BaseWebhookView
2424from django_github_app .views import SyncWebhookView
25- from django_github_app .views import detect_webhook_type
2625from django_github_app .views import get_webhook_views
2726
2827pytestmark = pytest .mark .django_db
@@ -260,21 +259,3 @@ def test_get_none(self, urlpatterns):
260259 views = get_webhook_views ()
261260
262261 assert len (views ) == 0
263-
264- def test_detect_async (self , urlpatterns ):
265- with urlpatterns ([AsyncWebhookView ]):
266- webhook_type = detect_webhook_type ()
267-
268- assert webhook_type == "async"
269-
270- def test_detect_sync (self , urlpatterns ):
271- with urlpatterns ([SyncWebhookView ]):
272- webhook_type = detect_webhook_type ()
273-
274- assert webhook_type == "sync"
275-
276- def test_detect_none (self , urlpatterns ):
277- with urlpatterns ([]):
278- webhook_type = detect_webhook_type ()
279-
280- assert webhook_type is None
You can’t perform that action at this time.
0 commit comments