Skip to content

Commit

Permalink
chore: version bump for openedx-learning
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Nov 13, 2023
1 parent ba4926e commit b855397
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 24 deletions.
33 changes: 15 additions & 18 deletions openedx/core/djangoapps/content_tagging/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,23 @@ def setUp(self):
# Taxonomies
self.taxonomy_disabled = api.create_taxonomy(
name="Learning Objectives",
enabled=False,
# We will disable this taxonomy below, after we have used it to tag some objects.
# Note: "disabled" taxonomies are not a supported nor user-exposed feature at the moment, so it's not
# actually that important to test them.
)
api.set_taxonomy_orgs(self.taxonomy_disabled, orgs=[self.org1, self.org2])
self.taxonomy_all_orgs = api.create_taxonomy(
name="Content Types",
enabled=True,
)

self.taxonomy_all_orgs = api.create_taxonomy(name="Content Types")
api.set_taxonomy_orgs(self.taxonomy_all_orgs, all_orgs=True)
self.taxonomy_both_orgs = api.create_taxonomy(
name="OpenedX/Axim Content Types",
enabled=True,
)

self.taxonomy_both_orgs = api.create_taxonomy(name="OpenedX/Axim Content Types")
api.set_taxonomy_orgs(self.taxonomy_both_orgs, orgs=[self.org1, self.org2])
self.taxonomy_one_org = api.create_taxonomy(
name="OpenedX Content Types",
enabled=True,
)

self.taxonomy_one_org = api.create_taxonomy(name="OpenedX Content Types")
api.set_taxonomy_orgs(self.taxonomy_one_org, orgs=[self.org1])
self.taxonomy_no_orgs = api.create_taxonomy(
name="No orgs",
enabled=True,
)

self.taxonomy_no_orgs = api.create_taxonomy(name="No orgs")

# Tags
self.tag_disabled = Tag.objects.create(
taxonomy=self.taxonomy_disabled,
Expand Down Expand Up @@ -100,6 +95,9 @@ def setUp(self):
taxonomy=self.taxonomy_disabled,
tags=[self.tag_disabled.value],
)[0]
self.taxonomy_disabled.enabled = False
self.taxonomy_disabled.save()
self.disabled_course_tag.refresh_from_db() # Update its cached .taxonomy


@ddt.ddt
Expand Down Expand Up @@ -184,7 +182,6 @@ def test_get_content_tags_valid_for_org(
assert valid_tags[0].id == object_tag.id

@ddt.data(
("taxonomy_disabled", "disabled_course_tag"),
("taxonomy_all_orgs", "all_orgs_course_tag"),
("taxonomy_all_orgs", "all_orgs_block_tag"),
("taxonomy_both_orgs", "both_orgs_course_tag"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def test_view_object_tag(self, tag_attr):

def test_view_object_tag_diabled(self):
"""
Noboty can view a ObjectTag from a disable taxonomy
Nobody can view a ObjectTag from a disabled taxonomy
"""
perm = "oel_tagging.view_objecttag"
assert self.superuser.has_perm(perm, self.disabled_course_tag)
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ libsass==0.10.0
click==8.1.6

# pinning this version to avoid updates while the library is being developed
openedx-learning==0.3.2
openedx-learning==0.3.4

# lti-consumer-xblock 9.6.2 contains a breaking change that makes
# existing custom parameter configurations unusable.
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ openedx-filters==1.6.0
# via
# -r requirements/edx/kernel.in
# lti-consumer-xblock
openedx-learning==0.3.2
openedx-learning==0.3.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/kernel.in
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ openedx-filters==1.6.0
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
# lti-consumer-xblock
openedx-learning==0.3.2
openedx-learning==0.3.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/doc.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ openedx-filters==1.6.0
# via
# -r requirements/edx/base.txt
# lti-consumer-xblock
openedx-learning==0.3.2
openedx-learning==0.3.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ openedx-filters==1.6.0
# via
# -r requirements/edx/base.txt
# lti-consumer-xblock
openedx-learning==0.3.2
openedx-learning==0.3.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
Expand Down

0 comments on commit b855397

Please sign in to comment.