mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# 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<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test'),
|
|
re_path(r'^test1/(?P<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test1'),
|
|
re_path(r'^test2/(?P<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test2'),
|
|
re_path(r'^test3/(?P<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test3'),
|
|
re_path(r'^test4/(?P<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test4'),
|
|
re_path(r'^test5/(?P<a>\d+)/(?P<b>\d+)/(?P<c>\d+)/$', _test_view,
|
|
name='test5'),
|
|
]
|