Skip to content

Commit

Permalink
commit suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
  • Loading branch information
lgc2333 and yanyongyu authored Feb 11, 2024
1 parent efb64a1 commit ded7f03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_adapters/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def test_message_contains():
assert message.has("foo") is False
assert "foo" not in message

assert not bool(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
Expand Down

0 comments on commit ded7f03

Please sign in to comment.