Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Git Lab
Commits
b5eda68b
Unverified
Commit
b5eda68b
authored
May 29, 2021
by
Adriaan de Groot
Committed by
Jonah Brüchert
May 29, 2021
Browse files
Adjust tests in the face of changed escaping rules
parent
fc2b4ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_utils.py
View file @
b5eda68b
...
...
@@ -42,7 +42,12 @@ class UtilsTest(unittest.TestCase):
str_id
:
str
=
Utils
.
str_id_for_url
(
url
)
self
.
assertEqual
(
str_id
,
"KDE%2Fkaidan"
)
self
.
assertEqual
(
str_id
,
"KDE/kaidan"
)
# This is not a valid repository name for KDE invent, though
url
=
"ssh://git@invent.kde.org/KDE/kaidan%.git"
str_id
=
Utils
.
str_id_for_url
(
url
)
self
.
assertEqual
(
str_id
,
"KDE/kaidan%"
)
def
test_ssh_url_from_http
(
self
):
url
:
str
=
"http://invent.kde.org/KDE/kaidan"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment