diff --git a/edx_sga/sga.py b/edx_sga/sga.py index b73a768d..21660048 100644 --- a/edx_sga/sga.py +++ b/edx_sga/sga.py @@ -26,7 +26,7 @@ from django.utils.timezone import now as django_now from django.utils.translation import gettext as _ from lms.djangoapps.courseware.models import StudentModule -from safe_lxml import etree +from openedx.core.lib.safe_lxml import etree from common.djangoapps.student.models import user_by_anonymous_id from submissions import api as submissions_api from submissions.models import StudentItem as SubmissionsStudent diff --git a/edx_sga/tests/test_sga.py b/edx_sga/tests/test_sga.py index c91181f2..5f59138c 100644 --- a/edx_sga/tests/test_sga.py +++ b/edx_sga/tests/test_sga.py @@ -116,7 +116,7 @@ def fake_import(name, *args, **kwargs): for module in ("common", "courseware", "lms", "xmodule"): if name.startswith(f"{module}.") or name == module: return mock.Mock() - if name == "safe_lxml": + if name == "openedx.core.lib.safe_lxml": return real_import("lxml", *args, **kwargs) raise