Add check for owner class in Item

This commit is contained in:
Boger 2020-03-28 18:47:42 +03:00
parent 45cfa5b3c9
commit 4298406bd2
2 changed files with 10 additions and 4 deletions

View file

@ -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):