feat: New codemods on CMS (#28768)

This commit is contained in:
M. Zulqarnain
2021-10-25 12:59:54 +05:00
committed by GitHub
parent eec1d345d8
commit e54fb5f76e
37 changed files with 72 additions and 70 deletions

View File

@@ -16,7 +16,7 @@ sessions. Assumes structure:
import os
from uuid import uuid4
from django.utils.translation import ugettext_lazy
from django.utils.translation import gettext_lazy
from path import Path as path
from openedx.core.lib.derived import derive_settings
@@ -46,8 +46,8 @@ from lms.envs.test import ( # pylint: disable=wrong-import-order
# Include a non-ascii character in STUDIO_NAME and STUDIO_SHORT_NAME to uncover possible
# UnicodeEncodeErrors in tests. Also use lazy text to reveal possible json dumps errors
STUDIO_NAME = ugettext_lazy("Your Platform 𝓢𝓽𝓾𝓭𝓲𝓸")
STUDIO_SHORT_NAME = ugettext_lazy("𝓢𝓽𝓾𝓭𝓲𝓸")
STUDIO_NAME = gettext_lazy("Your Platform 𝓢𝓽𝓾𝓭𝓲𝓸")
STUDIO_SHORT_NAME = gettext_lazy("𝓢𝓽𝓾𝓭𝓲𝓸")
# Allow all hosts during tests, we use a lot of different ones all over the codebase.
ALLOWED_HOSTS = [