Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 authored Feb 11, 2024
1 parent 04b1390 commit efb64a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_adapters/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def test_message_contains():
assert message.has("foo") is False
assert "foo" not in message

assert "text" in FakeMessage(FakeMessageSegment.text(""))
msg_with_empty_seg = FakeMessage([FakeMessageSegment.text("")])
assert msg_with_empty_seg.has("text") is True
assert "text" in msg_with_empty_seg


def test_message_only():
Expand Down

0 comments on commit efb64a1

Please sign in to comment.