diff --git a/test/stdlib_basics/test_session.py b/test/stdlib_basics/test_session.py index a1722e83..6590bb5f 100644 --- a/test/stdlib_basics/test_session.py +++ b/test/stdlib_basics/test_session.py @@ -138,12 +138,17 @@ class TestPowerup: def hello(m:MelleaSession): return "hello" +class TestPowerupInherit(TestPowerup): + def hello2(m:MelleaSession): + return "hello" + def test_powerup(m_session): - MelleaSession.powerup(TestPowerup) + MelleaSession.powerup(TestPowerupInherit) - assert "hello" == m_session.hello() + assert "hello" == m_session.hello() # check the inheritance is respected + assert "hello" == m_session.hello2() if __name__ == "__main__":