def test_open_window_params(self): fLOG(__file__, self._testMethodName, OutputPrint=__name__ == "__main__") if __name__ == "__main__": par = {"user": os.environ["USERNAME"], "password": ""} res = open_window_params( par, help_string="unit test", title="try the password *", top_level_window=None, key_save="unique" ) fLOG(res)
def test_open_window_params(self): fLOG( __file__, self._testMethodName, OutputPrint=__name__ == "__main__") params = dict(p1="p1", p2=3) try: win = open_window_params(params, do_not_open=True) except TclError as e: warnings.warn("TclError" + str(e)) return fLOG(type(win)) assert isinstance( win, src.pyquickhelper.funcwin.frame_params.FrameParams)