diff --git a/tests/test_api/test_types/test_exception.py b/tests/test_api/test_types/test_exception.py new file mode 100644 index 00000000..909f03cb --- /dev/null +++ b/tests/test_api/test_types/test_exception.py @@ -0,0 +1,15 @@ +import pytest + +from aiogram.exceptions import DetailedAiogramError + + +class TestException: + @pytest.mark.parametrize( + "message,result", + [ + ["reason", "DetailedAiogramError('reason')"], + ], + ) + def test_representation(self, message: str, result: bool): + exc = DetailedAiogramError(message=message) + assert repr(exc) == result