We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73d8e2 commit 5105b77Copy full SHA for 5105b77
test/stdlib_basics/test_session.py
@@ -138,12 +138,17 @@ class TestPowerup:
138
def hello(m:MelleaSession):
139
return "hello"
140
141
+class TestPowerupInherit(TestPowerup):
142
+ def hello2(m:MelleaSession):
143
+ return "hello"
144
+
145
146
def test_powerup(m_session):
147
- MelleaSession.powerup(TestPowerup)
148
+ MelleaSession.powerup(TestPowerupInherit)
149
- assert "hello" == m_session.hello()
150
+ assert "hello" == m_session.hello() # check the inheritance is respected
151
+ assert "hello" == m_session.hello2()
152
153
154
if __name__ == "__main__":
0 commit comments