Skip to content

Commit

Permalink
test: Fix quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
marslanabdulrauf committed Nov 21, 2024
1 parent 27ea5f9 commit 59b992e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/openedx_tagging/core/tagging/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,10 @@ def test_object_tags_remaining_http_methods(
("staff", "taxonomy", {"enabled": False}, ["Fungi"], status.HTTP_403_FORBIDDEN, "abc.xyz"),
# If allow_multiple=True, multiple tags can be added, but not if it's false:
("user_1", "taxonomy", {"allow_multiple": True}, ["Mammalia", "Fungi"], status.HTTP_200_OK, "abc.xyz"),
("user_1", "taxonomy", {"allow_multiple": False}, ["Mammalia", "Fungi"], status.HTTP_400_BAD_REQUEST, "abc.xyz"),
(
"user_1", "taxonomy", {"allow_multiple": False},
["Mammalia", "Fungi"], status.HTTP_400_BAD_REQUEST, "abc.xyz"
),
# user_1s and staff can add tags using an open taxonomy
(None, "free_text_taxonomy", {}, ["tag1"], status.HTTP_401_UNAUTHORIZED, "abc.xyz"),
("user_1", "free_text_taxonomy", {}, ["tag1", "tag2"], status.HTTP_200_OK, "abc"),
Expand Down

0 comments on commit 59b992e

Please sign in to comment.