From 6291fa0f5c4d30139c23c2e2f2a1daa49852c105 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 4 Dec 2022 20:22:24 -0700 Subject: Fix mentions in replies/capitalisation --- tests/activities/models/test_post.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/activities/models') diff --git a/tests/activities/models/test_post.py b/tests/activities/models/test_post.py index baeb55a..d215be0 100644 --- a/tests/activities/models/test_post.py +++ b/tests/activities/models/test_post.py @@ -68,6 +68,17 @@ def test_linkify_mentions_remote(identity, remote_identity): local=True, ) assert post.safe_content_remote() == "
@test@example.com, welcome!
" + # Test case insensitivity (remote) + post = Post.objects.create( + content="Hey @TeSt
", + author=identity, + local=True, + ) + post.mentions.add(remote_identity) + assert ( + post.safe_content_remote() + == 'Hey @test
' + ) @pytest.mark.django_db -- cgit v1.2.3