##// END OF EJS Templates
Fix faulty interact tests
Jonathan Frederic -
Show More
@@ -223,13 +223,12 b' def test_list_tuple_3_float():'
223 223 def test_list_tuple_str():
224 224 values = ['hello', 'there', 'guy']
225 225 first = values[0]
226 dvalues = OrderedDict((v,v) for v in values)
227 226 c = interactive(f, tup=tuple(values), lis=list(values))
228 227 nt.assert_equal(len(c.children), 2)
229 228 d = dict(
230 229 cls=widgets.Dropdown,
231 230 value=first,
232 values=dvalues
231 values=values
233 232 )
234 233 check_widgets(c, tup=d, lis=d)
235 234
@@ -292,7 +291,7 b' def test_default_values():'
292 291 ),
293 292 j=dict(
294 293 cls=widgets.Dropdown,
295 values={'hi':'hi', 'there':'there'},
294 values=['hi', 'there'],
296 295 value='there'
297 296 ),
298 297 )
@@ -315,7 +314,7 b' def test_default_out_of_bounds():'
315 314 ),
316 315 j=dict(
317 316 cls=widgets.Dropdown,
318 values={'hi':'hi', 'there':'there'},
317 values=['hi', 'there'],
319 318 value='hi',
320 319 ),
321 320 )
General Comments 0
You need to be logged in to leave comments. Login now