Skip to content

Commit

Permalink
fix: changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 27, 2024
1 parent f9c82a8 commit 6f76a82
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,12 @@ def test_copy_and_paste_unit_with_tags(self):
# Add tags to the unit
taxonomy_all_org = tagging_api.create_taxonomy("test_taxonomy", "Test Taxonomy")

taxonomy_all_org = tagging_api.create_taxonomy("test_taxonomy", "Test Taxonomy")
tagging_api.set_taxonomy_orgs(taxonomy_all_org, all_orgs=True)
Tag.objects.create(taxonomy=taxonomy_all_org, value="tag_1")
Tag.objects.create(taxonomy=taxonomy_all_org, value="tag_2")
# Removing a tag is causing tag_object to fail
# tag_removed = Tag.objects.create(taxonomy=taxonomy, value="tag_removed")
tagging_api.tag_object(
object_id=str(unit_key),
taxonomy=taxonomy_all_org,
# tags=["tag_1", "tag_2", "tag_removed"],
tags=["tag_1", "tag_2"],
)

Expand Down Expand Up @@ -194,7 +190,6 @@ def test_copy_and_paste_unit_with_tags(self):
copy_response = client.post(CLIPBOARD_ENDPOINT, {"usage_key": str(unit_key)}, format="json")
assert copy_response.status_code == 200

# tag_removed.delete()
taxonomy_all_org_removed.delete()

# Paste the unit
Expand Down

0 comments on commit 6f76a82

Please sign in to comment.