mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
parent
7e3ff9a7ce
commit
4b9149ac8f
1 changed files with 15 additions and 0 deletions
15
tests/test_api/test_types/test_exception.py
Normal file
15
tests/test_api/test_types/test_exception.py
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue