Skip to content

Commit

Permalink
chore: get all tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Sep 29, 2023
1 parent 689cd26 commit 6480da3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openedx_tagging/core/tagging/rest_api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ def update(self, request, object_id, partial=False):
tags = body.data.get("tags", [])
try:
tag_object(taxonomy, tags, object_id)
except Tag.DoesNotExist as e:
raise ValidationError(e)
except ValueError as e:
raise ValidationError(e)

Expand Down
2 changes: 1 addition & 1 deletion tests/openedx_tagging/core/tagging/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def test_retrieve_object_tags_taxonomy_queryparam(
if status.is_success(expected_status):
assert len(response.data) == expected_count
for object_tag in response.data:
assert object_tag.get("is_valid") is True
assert object_tag.get("is_deleted") is False
assert object_tag.get("taxonomy_id") == self.enabled_taxonomy.pk

@ddt.data(
Expand Down

0 comments on commit 6480da3

Please sign in to comment.