Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ckreisl committed Apr 2, 2024
1 parent 0740bcd commit 6a583e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bot/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<b>Hello World</b>\n(2009-02-14 00:31:30)\n\n<b>[ UI ]</b>\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&#39;t be equipped were visible in the Loadout menu\n• Fixed a bug where loadout items couldn&#39;t be unequipped\n• Fixed a bug where loadout changes weren&#39;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<b>[ MISC ]</b>\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<b>[ MAPS ]</b>\n<em>Ancient:</em>\n• Added simplified grenade collisions to corner trims and central pillar on B site\n\n<em>Anubis:</em>\n• Adjusted clipping at A site steps between Walkway and Heaven\n\n\nSource: <a href='https://www.counter-strike.net/news/updates'>https://www.counter-strike.net/news/updates</a>"
expected = "<b>Hello World</b>\n(2009-02-13 23:31:30)\n\n<b>[ UI ]</b>\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&#39;t be equipped were visible in the Loadout menu\n• Fixed a bug where loadout items couldn&#39;t be unequipped\n• Fixed a bug where loadout changes weren&#39;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<b>[ MISC ]</b>\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<b>[ MAPS ]</b>\n<em>Ancient:</em>\n• Added simplified grenade collisions to corner trims and central pillar on B site\n\n<em>Anubis:</em>\n• Adjusted clipping at A site steps between Walkway and Heaven\n\n\nSource: <a href='https://www.counter-strike.net/news/updates'>https://www.counter-strike.net/news/updates</a>"

assert len(msg.messages) == 1
assert msg.message == expected
Expand Down

0 comments on commit 6a583e8

Please sign in to comment.