@@ -706,10 +706,8 @@ def test_error_code(self) -> None:
706
706
707
707
def test_default_message (self ) -> None :
708
708
"""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.'
713
711
)
714
712
715
713
def test_init_with_custom_message (self ) -> None :
@@ -721,15 +719,12 @@ def test_init_with_custom_message(self) -> None:
721
719
def test_default_dependant_message (self ) -> None :
722
720
"""Test that the default message is correct."""
723
721
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.'
733
728
)
734
729
735
730
0 commit comments