Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313195
test_urls.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
495 B
Subscribers
None
test_urls.py
View Options
# Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
django.urls
import
get_resolver
def
test_swh_web_urls_have_trailing_slash
():
urls
=
set
(
value
[
1
]
for
value
in
get_resolver
()
.
reverse_dict
.
values
())
for
url
in
urls
:
if
url
!=
"$"
:
assert
url
.
endswith
(
"/$"
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Jul 3, 11:28 AM (5 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3298582
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment