mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Add check for owner class in Item
This commit is contained in:
parent
45cfa5b3c9
commit
4298406bd2
2 changed files with 10 additions and 4 deletions
|
|
@ -40,6 +40,11 @@ class TestHelper:
|
|||
class MyHelper(Helper):
|
||||
kaboom = Item()
|
||||
|
||||
def test_not_a_helper_subclass(self):
|
||||
with pytest.raises(RuntimeError):
|
||||
|
||||
class NotAHelperSubclass:
|
||||
A = Item()
|
||||
|
||||
class TestHelperMode:
|
||||
def test_helper_mode_all(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue