adventurelib
adventurelib copied to clipboard
Fix test teardown handling
Using def teardown():
for test teardown code was never officially supported by pytest to my best knowledge.
Running the tests with pytest 8.2.0 does not succeed because teardown never gets called.
This change introduces a fixture to handle the setup and teardown of the commands list.