Skip to content

Commit

Permalink
Add remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
MizukiTemma committed Dec 9, 2024
1 parent 4a828b2 commit b118e11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cms/views/contacts/test_contact_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def test_archive_contact(
).content.decode("utf-8")
assert Contact.objects.filter(id=contact_id).first().archived
else:
# To be adjusted after #3282
assert_message_in_log(
"ERROR Contact couldn't be archived as it's used in a content",
caplog,
Expand Down Expand Up @@ -133,6 +134,7 @@ def test_delete_contact(
).content.decode("utf-8")
assert not Contact.objects.filter(id=contact_id).first()
else:
# To be adjusted after #3282
assert_message_in_log(
"ERROR Contact couldn't be archived as it's used in a content",
caplog,
Expand Down Expand Up @@ -240,7 +242,7 @@ def test_bulk_archive_contacts(
response.status_code == 302
redirect_url = response.headers.get("location")
redirect_page = client.get(redirect_url).content.decode("utf-8")

# To be adjusted after #3282
"""
assert_message_in_log(
"ERROR could not be archived",
Expand Down Expand Up @@ -312,7 +314,7 @@ def test_bulk_delete_contacts(
response.status_code == 302
redirect_url = response.headers.get("location")
redirect_page = client.get(redirect_url).content.decode("utf-8")

# To be adjusted after #3282
"""
assert_message_in_log(
"ERROR could not be archived",
Expand Down

0 comments on commit b118e11

Please sign in to comment.