Spaces:
Running
Running
File size: 426 Bytes
ffae8c1 1bc6f72 ffae8c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import unittest
import main
class MultipageAppTests(unittest.TestCase):
def test_expected_routes_are_registered(self):
pages = [(route, title) for route, title, _ in main.iface.pages]
self.assertIn(("", "Home"), pages)
self.assertIn(("template", "PowerPoint 模板工具"), pages)
self.assertIn(("live", "即時 Markdown 編輯"), pages)
if __name__ == "__main__":
unittest.main()
|