Skip to content

Commit 9da3415

Browse files
committed
test: test powerup inheritance
1 parent 601a6eb commit 9da3415

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/stdlib_basics/test_session.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,17 @@ class TestPowerup:
138138
def hello(m:MelleaSession):
139139
return "hello"
140140

141+
class TestPowerupInherit(TestPowerup):
142+
def hello2(m:MelleaSession):
143+
return "hello"
144+
141145

142146
def test_powerup(m_session):
143147

144-
MelleaSession.powerup(TestPowerup)
148+
MelleaSession.powerup(TestPowerupInherit)
145149

146-
assert "hello" == m_session.hello()
150+
assert "hello" == m_session.hello() # check the inheritance is respected
151+
assert "hello" == m_session.hello2()
147152

148153

149154
if __name__ == "__main__":

0 commit comments

Comments
 (0)