Skip to content

Commit 343cb28

Browse files
more work
1 parent 1236eff commit 343cb28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ def test_default_message_without_guild_id(self) -> None:
637637
"""
638638
assert "given ID" in str(GuildDoesNotExistError())
639639

640+
def test_error_code(self) -> None:
641+
"""Test that the error code is set correctly."""
642+
assert "E1011" in (GuildDoesNotExistError().ERROR_CODE)
643+
640644

641645
class TestRoleDoesNotExistError:
642646
"""Test case to unit-test the `RoleDoesNotExistError` exception."""

0 commit comments

Comments
 (0)