Show More
@@ -489,13 +489,20 b' def test_default_description():' | |||
|
489 | 489 | ) |
|
490 | 490 | |
|
491 | 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 | 498 | w = c.children[0] |
|
494 | 499 | check_widget(w, |
|
495 | 500 | cls=widgets.Text, |
|
496 | 501 | value='text', |
|
497 | 502 | description='foo', |
|
498 | 503 | ) |
|
504 | w.value = 'different text' | |
|
505 | nt.assert_equal(d, {'b': 'different text'}) | |
|
499 | 506 | |
|
500 | 507 | def test_interact_manual_button(): |
|
501 | 508 | c = interactive(f, __manual=True) |
General Comments 0
You need to be logged in to leave comments.
Login now