Skip to content
Snippets Groups Projects
Unverified Commit 03c6a46e authored by Leonardo Martinez's avatar Leonardo Martinez Committed by GitHub
Browse files

Update the LibraryLocator attribute from 'course' to 'library' (#23924)

This PR solves the deprecation warning found here:
https://build.testeng.edx.org/job/edx-platform-python-pipeline-master/warning_5freport_5fall_2ehtml/

Change:
(LibraryLocator(org='org', course='course'), False)
To:
(LibraryLocator(org='org', library='course'), False)
In the file:
openedx/core/djangoapps/content/block_structure/tests/test_signals.py

* LibraryLocator is from the opaque_keys.edx.locator module

See documentation:
https://pythonhosted.org/edx-opaque-keys/opaque_keys.edx.html#opaque_keys.edx.locator.LibraryLocator
parent c23071de
No related merge requests found
......@@ -75,7 +75,7 @@ class CourseBlocksSignalTest(ModuleStoreTestCase):
@ddt.data(
(CourseLocator(org='org', course='course', run='run'), True),
(LibraryLocator(org='org', course='course'), False),
(LibraryLocator(org='org', library='course'), False),
)
@ddt.unpack
@patch('openedx.core.djangoapps.content.block_structure.tasks.update_course_in_cache_v2.apply_async')
......
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