# SPDX-License-Identifier: AGPL-3.0-or-later """ Django URL patterns for running tests. """ from django.urls import include, re_path from django.views.generic import TemplateView _test_view = TemplateView.as_view(template_name='index.html') app_urls = [ re_path(r'^apps/testapp/$', _test_view, name='index'), re_path(r'^apps/testapp/create/$', _test_view, name='create'), ] urlpatterns = [ re_path(r'^$', _test_view, name='index'), re_path(r'^apps/$', _test_view, name='apps'), re_path(r'', include((app_urls, 'testapp'))), re_path(r'^sys/$', _test_view, name='system'), re_path(r'^test/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test'), re_path(r'^test1/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test1'), re_path(r'^test2/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test2'), re_path(r'^test3/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test3'), re_path(r'^test4/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test4'), re_path(r'^test5/(?P\d+)/(?P\d+)/(?P\d+)/$', _test_view, name='test5'), ]