def test_PanelController_shared_controller(): with test_app() as app: cx = PanelController.shared_controller(app) c1 = OtherController.shared_controller(app) assert cx is not c1, c1 assert isinstance(c1, OtherController), c1 c2 = OtherController.shared_controller(app) assert c1 is c2, (c1, c2)
def test_PanelController_shared_controller(): cx = PanelController.shared_controller() c1 = OtherController.shared_controller() assert isinstance(c1, OtherController), c1 c2 = OtherController.shared_controller() assert c1 is c2, (c1, c2)