Skip to content

Fix emoji tests

Fix emoji tests #1706

Triggered via push November 13, 2024 09:21
Status Success
Total duration 41s
Artifacts

precommit.yml

on: push
runner / Pre-commit actions
30s
runner / Pre-commit actions
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
test_bot.test_polls: tests/test_bot.py#L508
AssertionError: assert [{'poll_media...ext': 'Two'}}] == [{'poll_media...ext': 'Two'}}] At index 0 diff: {'poll_media': {'text': 'One', 'emoji': {'name': '1️⃣', 'animated': False, 'available': True}}} != {'poll_media': {'text': 'One', 'emoji': {'name': '1️⃣', 'animated': False}}} Full diff: [ { 'poll_media': { 'emoji': { 'animated': False, + 'available': True, 'name': '1️⃣', }, 'text': 'One', }, }, { 'poll_media': { 'emoji': { 'animated': False, + 'available': True, 'name': '2️⃣', }, 'text': 'Two', }, }, ]
test_bot.test_voice: tests/test_bot.py#L578
AssertionError: assert 231 != 231 + where 231 = <Player(Thread-4, stopped daemon 140714587448896)>._sent_payloads + where <Player(Thread-4, stopped daemon 140714587448896)> = <ActiveVoiceState: channel=GuildVoice(id=1306189520353628220, name='_test_voice_two-fce63bc', type=<ChannelType.GUILD_VOICE: 2>) guild=Guild(id=1041449294022070292, name='NAFF Test Suite', description=None) volume=0.5 playing=False audio=<AudioVolume: tests/test_audio.mp3>>.player
test_bot.test_emoji: tests/test_bot.py#L1
failed on teardown with "exceptiongroup.ExceptionGroup: errors while tearing down <Module test_bot.py> (2 sub-exceptions)"
runner / Pre-commit actions
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/