From e6e124bf161ac969e0a956da9d66dcbbbf6ea87d Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 27 Oct 2023 10:06:47 -0700 Subject: [PATCH] chore: tagging - version bump to latest openedx-learning (#33553) --- openedx/core/djangoapps/content_tagging/tests/test_api.py | 7 ++++++- requirements/constraints.txt | 2 +- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/testing.txt | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/openedx/core/djangoapps/content_tagging/tests/test_api.py b/openedx/core/djangoapps/content_tagging/tests/test_api.py index 985199322deb..c086396ee2a0 100644 --- a/openedx/core/djangoapps/content_tagging/tests/test_api.py +++ b/openedx/core/djangoapps/content_tagging/tests/test_api.py @@ -210,7 +210,12 @@ def test_get_content_tags( assert valid_tags[0].id == object_tag.id def test_get_tags(self): - assert api.get_tags(self.taxonomy_all_orgs) == [self.tag_all_orgs] + result = list(api.get_tags(self.taxonomy_all_orgs)) + assert len(result) == 1 + assert result[0]["value"] == self.tag_all_orgs.value + assert result[0]["_id"] == self.tag_all_orgs.id + assert result[0]["parent_value"] is None + assert result[0]["depth"] == 0 def test_cannot_tag_across_orgs(self): """ diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 254655b4c2f9..fb428939e6d7 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -121,7 +121,7 @@ libsass==0.10.0 click==8.1.6 # pinning this version to avoid updates while the library is being developed -openedx-learning==0.2.6 +openedx-learning==0.3.0 # lti-consumer-xblock 9.6.2 contains a breaking change that makes # existing custom parameter configurations unusable. diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 4c5aaa9b8f65..bd08da99a6cc 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -785,7 +785,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/kernel.in # lti-consumer-xblock -openedx-learning==0.2.6 +openedx-learning==0.3.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/kernel.in diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 658adf20e540..bc583442dcdf 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1318,7 +1318,7 @@ openedx-filters==1.6.0 # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt # lti-consumer-xblock -openedx-learning==0.2.6 +openedx-learning==0.3.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index cf936c882729..26f86893e49e 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -925,7 +925,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/base.txt # lti-consumer-xblock -openedx-learning==0.2.6 +openedx-learning==0.3.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 4be23992ac99..218485e8faf5 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -992,7 +992,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/base.txt # lti-consumer-xblock -openedx-learning==0.2.6 +openedx-learning==0.3.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt