mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Fix faulty interact tests
This commit is contained in:
parent
592112f0fa
commit
01a6929c0d
@ -223,13 +223,12 @@ def test_list_tuple_3_float():
|
||||
def test_list_tuple_str():
|
||||
values = ['hello', 'there', 'guy']
|
||||
first = values[0]
|
||||
dvalues = OrderedDict((v,v) for v in values)
|
||||
c = interactive(f, tup=tuple(values), lis=list(values))
|
||||
nt.assert_equal(len(c.children), 2)
|
||||
d = dict(
|
||||
cls=widgets.Dropdown,
|
||||
value=first,
|
||||
values=dvalues
|
||||
values=values
|
||||
)
|
||||
check_widgets(c, tup=d, lis=d)
|
||||
|
||||
@ -292,7 +291,7 @@ def test_default_values():
|
||||
),
|
||||
j=dict(
|
||||
cls=widgets.Dropdown,
|
||||
values={'hi':'hi', 'there':'there'},
|
||||
values=['hi', 'there'],
|
||||
value='there'
|
||||
),
|
||||
)
|
||||
@ -315,7 +314,7 @@ def test_default_out_of_bounds():
|
||||
),
|
||||
j=dict(
|
||||
cls=widgets.Dropdown,
|
||||
values={'hi':'hi', 'there':'there'},
|
||||
values=['hi', 'there'],
|
||||
value='hi',
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user