Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/u/auto-resizing-text-edit-0.1.0/auto_resizing_text_edit/tests/test_auto_resizing_text_edit.py   auto-resizing-text-edit(Download)
        # The window needs to get shown for the size changes to be propagated to layout.
        # Show it minimized to avoid stealing focus from the console running the tests.
        parent.showMinimized()
 
        self.assertEqual(self.auto_resizing_text_edit.height(), size_hint.height())
        # The window needs to get shown for the size changes to be propagated to layout.
        # Show it minimized to avoid stealing focus from the console running the tests.
        parent.showMinimized()
 
        assert self.auto_resizing_text_edit.height(), size_hint.height()