Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_destroy():
a = App()
t = Text(a)
destroy_test(t)
a.destroy()
def test_display():
a = App()
c = Combo(a, ["foo", "bar"])
display_test(c)
a.destroy()
def test_text():
a = App()
# default values
t = Text(a, color=None, size=None, font=None)
text_test(t)
a.destroy()
def test_events():
a = App()
b = ButtonGroup(a, ["foo", "bar"])
events_test(b)
a.destroy()
def test_cascading_properties():
a = App()
b = Box(a)
cascading_properties_test(b)
a.destroy()
def test_repeat_schedule():
a = App()
b = PushButton(a)
schedule_repeat_test(a, b)
a.destroy()
def test_events():
a = App()
p = PushButton(a)
events_test(p)
a.destroy()
def test_grid_layout():
a = App(layout="grid")
w = PushButton(a, grid=[1,2])
grid_layout_test(w, 1, 2, 1, 1, None)
ws = PushButton(a, grid=[1,2,3,4])
grid_layout_test(ws, 1, 2, 3, 4, None)
wa = PushButton(a, grid=[1,2], align="top")
grid_layout_test(wa, 1, 2, 1, 1, "top")
a.destroy()
inherited_properties_test(a, lambda: Text(a), True)
a.destroy()
def test_enable():
a = App()
t = Text(a)
cascading_enable_test(a)
a.destroy()