diff --git a/tests/bot/test_message.py b/tests/bot/test_message.py index d5297aa..5e44b85 100644 --- a/tests/bot/test_message.py +++ b/tests/bot/test_message.py @@ -20,7 +20,7 @@ def mocked_cs2_update_post(): def test_counter_strike_update_message(mocked_cs2_update_post): mocked_cs2_update_post.body = "[ UI ]\n[list]\n[*]Fixed cases where there was a visible delay loading map images in the Play menu\n[*]Fixed a bug where items that can't be equipped were visible in the Loadout menu\n[*]Fixed a bug where loadout items couldn't be unequipped\n[*]Fixed a bug where loadout changes weren't saved if the game was quit shortly after making changes\n[*]Fixed a bug where loadout changes on the main menu character were delayed\n[/list]\n[ MISC ]\n[list]\n[*]Fixed some visual issues with demo playback\n[*]Fixed an issue where animations would not play back correctly in a CSTV broadcast\n[*]Adjusted wear values of some community stickers to better match CS:GO\n[/list]\n[ MAPS ]\n[i]Ancient:[/i][list]\n[*]Added simplified grenade collisions to corner trims and central pillar on B site\n[/list]\n[i]Anubis:[/i][list]\n[*]Adjusted clipping at A site steps between Walkway and Heaven\n[/list]" msg = CounterStrikeUpdateMessage(post=mocked_cs2_update_post) - expected = "Hello World\n(2009-02-14 00:31:30)\n\n[ UI ]\n\n• Fixed cases where there was a visible delay loading map images in the Play menu\n• Fixed a bug where items that can't be equipped were visible in the Loadout menu\n• Fixed a bug where loadout items couldn't be unequipped\n• Fixed a bug where loadout changes weren't saved if the game was quit shortly after making changes\n• Fixed a bug where loadout changes on the main menu character were delayed\n\n[ MISC ]\n\n• Fixed some visual issues with demo playback\n• Fixed an issue where animations would not play back correctly in a CSTV broadcast\n• Adjusted wear values of some community stickers to better match CS:GO\n\n[ MAPS ]\nAncient:\n• Added simplified grenade collisions to corner trims and central pillar on B site\n\nAnubis:\n• Adjusted clipping at A site steps between Walkway and Heaven\n\n\nSource: https://www.counter-strike.net/news/updates" + expected = "Hello World\n(2009-02-13 23:31:30)\n\n[ UI ]\n\n• Fixed cases where there was a visible delay loading map images in the Play menu\n• Fixed a bug where items that can't be equipped were visible in the Loadout menu\n• Fixed a bug where loadout items couldn't be unequipped\n• Fixed a bug where loadout changes weren't saved if the game was quit shortly after making changes\n• Fixed a bug where loadout changes on the main menu character were delayed\n\n[ MISC ]\n\n• Fixed some visual issues with demo playback\n• Fixed an issue where animations would not play back correctly in a CSTV broadcast\n• Adjusted wear values of some community stickers to better match CS:GO\n\n[ MAPS ]\nAncient:\n• Added simplified grenade collisions to corner trims and central pillar on B site\n\nAnubis:\n• Adjusted clipping at A site steps between Walkway and Heaven\n\n\nSource: https://www.counter-strike.net/news/updates" assert len(msg.messages) == 1 assert msg.message == expected