# Path: sitegate/toolbox.py
# def get_sitegate_urls() -> list:
#     """Returns sitegate urlpatterns, that can be attached
#     to urlpatterns of a project:
# 
#         # Example from urls.py.
# 
#         from sitegate.toolbox import get_sitegate_urls
# 
#         urlpatterns = patterns('',
#             ...
#             path('login/', 'apps.views.login', name='login'),
#             ...
#         ) + get_sitegate_urls()  # Attach.
# 
#     """
#     urls = [
#         re_path(r'^verify_email/(?P<code>\S+)/$', verify_email, name='verify_email'),
#         re_path(r'^rauth/(?P<alias>\S+)/start/$', remote_auth_start, name='remote_auth_start'),
#         re_path(r'^rauth/(?P<alias>\S+)/$', remote_auth, name='remote_auth'),
#     ]
#     return urls
# 
# Path: sitegate/tests/testapp/views.py
# def response_from_string(request, string):
# def register(request):
# def login(request):


from django.urls import path
from pytest_djangoapp.compat import get_urlpatterns
from sitegate.toolbox import get_sitegate_urls
from .views import login, register, HttpResponse



urlpatterns = get_urlpatterns([
    path('entrance/', lambda r: None),
    path('ok/', lambda r: HttpResponse('ok'), name='ok'),

# Path: sitegate/toolbox.py
# def get_sitegate_urls() -> list:
#     """Returns sitegate urlpatterns, that can be attached
#     to urlpatterns of a project:
# 
#         # Example from urls.py.
# 
#         from sitegate.toolbox import get_sitegate_urls
# 
#         urlpatterns = patterns('',
#             ...
#             path('login/', 'apps.views.login', name='login'),
#             ...
#         ) + get_sitegate_urls()  # Attach.
# 
#     """
#     urls = [
#         re_path(r'^verify_email/(?P<code>\S+)/$', verify_email, name='verify_email'),
#         re_path(r'^rauth/(?P<alias>\S+)/start/$', remote_auth_start, name='remote_auth_start'),
#         re_path(r'^rauth/(?P<alias>\S+)/$', remote_auth, name='remote_auth'),
#     ]
#     return urls
# 
# Path: sitegate/tests/testapp/views.py
# def response_from_string(request, string):
# def register(request):
# def login(request):


# Path: sitegate/tests/testapp/urls.py
from django.urls import path
from pytest_djangoapp.compat import get_urlpatterns
from sitegate.toolbox import get_sitegate_urls
from .views import login, register, HttpResponse




urlpatterns = get_urlpatterns([
    path('entrance/', lambda r: None),
    path('ok/', lambda r: HttpResponse('ok'), name='ok'),

    path('fail/', lambda r: HttpResponse('fail'), name='fail'),