Skip to content

Commit

Permalink
Fix emoji tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Nov 13, 2024
1 parent 91306d7 commit fce63bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_emoji_formatting() -> None:

def test_emoji_processing() -> None:
raw_sample = "<:sparklesnek:910496037708374016>"
dict_sample = {"id": 910496037708374016, "name": "sparklesnek", "animated": False}
dict_sample = {"id": 910496037708374016, "name": "sparklesnek", "animated": False, "available": True}
unicode_sample = "👍"
target = "sparklesnek:910496037708374016"

Expand All @@ -48,7 +48,7 @@ def test_emoji_processing() -> None:

assert isinstance(raw_emoji, dict) and raw_emoji == dict_sample
assert isinstance(dict_emoji, dict) and dict_emoji == dict_sample
assert isinstance(unicode_emoji, dict) and unicode_emoji == {"name": "👍", "animated": False}
assert isinstance(unicode_emoji, dict) and unicode_emoji == {"name": "👍", "animated": False, "available": True}

from_str = PartialEmoji.from_str(raw_sample)
assert from_str.req_format == target
Expand Down

0 comments on commit fce63bc

Please sign in to comment.