##// END OF EJS Templates
Add tests for default/custom description
Jessica B. Hamrick -
Show More
@@ -463,3 +463,20 b' def test_fixed():'
463 description='b',
463 description='b',
464 )
464 )
465
465
466 def test_default_description():
467 c = interactive(f, b='text')
468 w = c.children[0]
469 check_widget(w,
470 cls=widgets.TextWidget,
471 value='text',
472 description='b',
473 )
474
475 def test_custom_description():
476 c = interactive(f, b=widgets.TextWidget(value='text', description='foo'))
477 w = c.children[0]
478 check_widget(w,
479 cls=widgets.TextWidget,
480 value='text',
481 description='foo',
482 )
General Comments 0
You need to be logged in to leave comments. Login now