Commit 747e15fa authored by FichteFoll's avatar FichteFoll

Fix tests for when a url ends with a forward slash

parent 0f586d52
......@@ -117,7 +117,7 @@ def get_package_name(data):
Use the last part of details url for the package's name otherwise since
packages must define one of these two keys anyway.
"""
return data.get('name') or data.get('details').rsplit('/', 1)[-1]
return data.get('name') or data.get('details').strip("/").rsplit("/", 1)[-1]
################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment