]> git.ipfire.org Git - pbs.git/commitdiff
tests: Dump any messages in the queue
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Oct 2022 12:45:20 +0000 (12:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Oct 2022 12:45:20 +0000 (12:45 +0000)
This is mainly useful for manual debugging

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/test.py

index 75b2989f8f8343cb00ff3851abb4e22b81e34bba..cbcd62a062518354663152664677e069eb09e6b6 100644 (file)
@@ -100,6 +100,10 @@ class TestCase(unittest.IsolatedAsyncioTestCase):
                        await self._create_default_objects()
 
        async def asyncTearDown(self):
+               # Dump any messages in the message queue
+               for message in self.backend.messages:
+                       print(message)
+
                # Dump a listing of all temporary files
                with os.scandir(self.testdir.name) as listing:
                        for entry in sorted(listing, key=lambda e: e.path):