##// END OF EJS Templates
test that custom description doesn't change kwarg
Min RK -
Show More
@@ -489,13 +489,20 b' def test_default_description():'
489 )
489 )
490
490
491 def test_custom_description():
491 def test_custom_description():
492 c = interactive(f, b=widgets.Text(value='text', description='foo'))
492 d = {}
493 def record_kwargs(**kwargs):
494 d.clear()
495 d.update(kwargs)
496
497 c = interactive(record_kwargs, b=widgets.Text(value='text', description='foo'))
493 w = c.children[0]
498 w = c.children[0]
494 check_widget(w,
499 check_widget(w,
495 cls=widgets.Text,
500 cls=widgets.Text,
496 value='text',
501 value='text',
497 description='foo',
502 description='foo',
498 )
503 )
504 w.value = 'different text'
505 nt.assert_equal(d, {'b': 'different text'})
499
506
500 def test_interact_manual_button():
507 def test_interact_manual_button():
501 c = interactive(f, __manual=True)
508 c = interactive(f, __manual=True)
General Comments 0
You need to be logged in to leave comments. Login now