Show More
@@ -480,3 +480,16 b' def test_custom_description():' | |||
|
480 | 480 | value='text', |
|
481 | 481 | description='foo', |
|
482 | 482 | ) |
|
483 | ||
|
484 | def test_interact_ondemand_button(): | |
|
485 | c = interactive(f, on_demand=True) | |
|
486 | w = c.children[0] | |
|
487 | check_widget(w, cls=widgets.ButtonWidget) | |
|
488 | ||
|
489 | def test_interact_ondemand_nocall(): | |
|
490 | callcount = 0 | |
|
491 | def calltest(testarg): | |
|
492 | callcount += 1 | |
|
493 | c = interactive(calltest, testarg=5, on_demand=True) | |
|
494 | c.children[0].value = 10 | |
|
495 | nt.assert_equal(callcount, 0) |
General Comments 0
You need to be logged in to leave comments.
Login now