Skip to content

Commit

Permalink
test: add delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Aug 15, 2023
1 parent 5f4a9a5 commit 7cbe2b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/openedx_tagging/core/tagging/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,21 @@ def test_tag_object(self):
assert object_tag.name == self.taxonomy.name
assert object_tag.object_id == "biology101"

# Delete the tags
tagging_api.delete_object_tags("biology101")

# Ensure the tags were deleted
assert (
len(
list(
tagging_api.get_object_tags(
object_id="biology101",
)
)
)
== 0
)

def test_tag_object_free_text(self):
self.taxonomy.allow_free_text = True
self.taxonomy.save()
Expand Down

0 comments on commit 7cbe2b0

Please sign in to comment.