From 03c6a46e33233c6e87fa1af604810acdf48d72bf Mon Sep 17 00:00:00 2001
From: Leonardo Martinez <leonardo.martinez@edunext.co>
Date: Fri, 8 May 2020 11:19:59 -0500
Subject: [PATCH] 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
---
 .../djangoapps/content/block_structure/tests/test_signals.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openedx/core/djangoapps/content/block_structure/tests/test_signals.py b/openedx/core/djangoapps/content/block_structure/tests/test_signals.py
index 52360b6fa3a..d1679edb39a 100644
--- a/openedx/core/djangoapps/content/block_structure/tests/test_signals.py
+++ b/openedx/core/djangoapps/content/block_structure/tests/test_signals.py
@@ -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')
-- 
GitLab