Skip to content

Commit

Permalink
feat: add tests for getting actor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Oct 11, 2024
1 parent 23de337 commit f5f3b99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/endstone_test/tests/on_player_join/test_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,10 @@ def test_player_scoreboard(player: Player, server: Server):

player.scoreboard = server.scoreboard
assert player.scoreboard is server.scoreboard


def test_player_tags(player: Player, server: Server):
server.dispatch_command(server.command_sender, f'tag "{player.name}" add test_tag')
assert "test_tag" in player.scoreboard_tags
server.dispatch_command(server.command_sender, f'tag "{player.name}" remove test_tag')
assert "test_tag" not in player.scoreboard_tags

0 comments on commit f5f3b99

Please sign in to comment.