Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions test/stdlib_basics/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
Loading