def fake_window():
    """
    A fake window that can provide a fake drawer to test widgets.
    """

    class FakeWindow:
        class _NestedWindow:
            wid = 10

        window = _NestedWindow()

        def create_drawer(self, width, height):
            return drawer.Drawer(None, self, width, height)

    return FakeWindow()

    A fake window that can provide a fake drawer to test widgets.
    
test/conftest.py