test: slugify issue

This commit is contained in:
Jannat Patel
2022-11-04 13:48:12 +05:30
parent 9f9dd25f91
commit 8204fa8ee7

View File

@@ -22,7 +22,7 @@ from lms.lms.md import find_macros, markdown_to_html
RE_SLUG_NOTALLOWED = re.compile("[^a-z0-9]+") RE_SLUG_NOTALLOWED = re.compile("[^a-z0-9]+")
def slugify(title, used_slugs): def slugify(title, used_slugs=None):
"""Converts title to a slug. """Converts title to a slug.
If a list of used slugs is specified, it will make sure the generated slug If a list of used slugs is specified, it will make sure the generated slug