Skip to content

Commit dfd258c

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 24864fe commit dfd258c

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

tests/test_exceptions.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,8 @@ def test_error_code(self) -> None:
706706

707707
def test_default_message(self) -> None:
708708
"""Test that the default message is correct."""
709-
assert (
710-
self._RoleDoesNotExistErrorSubclass.DEFAULT_MESSAGE == (
711-
'Role with name "role_name_1" does not exist.'
712-
)
709+
assert self._RoleDoesNotExistErrorSubclass.DEFAULT_MESSAGE == (
710+
'Role with name "role_name_1" does not exist.'
713711
)
714712

715713
def test_init_with_custom_message(self) -> None:
@@ -721,15 +719,12 @@ def test_init_with_custom_message(self) -> None:
721719
def test_default_dependant_message(self) -> None:
722720
"""Test that the default message is correct."""
723721
test_exception: RoleDoesNotExistError = self._RoleDoesNotExistErrorSubclass()
724-
assert (
725-
test_exception.get_formatted_message(
726-
non_existent_object_identifier=test_exception.ROLE_NAME,
727-
)
728-
== (
729-
f'"{test_exception.ROLE_NAME}" {test_exception.DOES_NOT_EXIST_TYPE} must exist'
730-
" in order to use the \"/test_command_1\" command, the \"test_task_1\" task"
731-
" and the \"test_event_1\" event."
732-
)
722+
assert test_exception.get_formatted_message(
723+
non_existent_object_identifier=test_exception.ROLE_NAME,
724+
) == (
725+
f'"{test_exception.ROLE_NAME}" {test_exception.DOES_NOT_EXIST_TYPE} must exist'
726+
' in order to use the "/test_command_1" command, the "test_task_1" task'
727+
' and the "test_event_1" event.'
733728
)
734729

735730

0 commit comments

Comments
 (0)