On 3/4/2015 18:16, Werner wrote:
Hi,
Both tests in that fail for me this is on Python 2.7 with wxPython
2.8.12.1 and using the working branch
The 'testNullRecord' I think should be changed from:
self.assertEqual(frm.cField.Value, None)
self.assertEqual(frm.iField.Value, None)
self.assertEqual(frm.nField.Value, None)
to:
self.assertEqual(frm.cField.Value, u'')
self.assertEqual(frm.iField.Value, u'')
self.assertEqual(frm.nField.Value, u'')
Would that be correct?
However the 'testSomeSanityThings' I don't know how to fix.
First fail is on:
self.assertEqual(frm.cField.Value, "Paul Keith McNett")
frm.cField.Value is u''
It looks like no record is yet selected into the frm fields.
Doing some further debugging.
In the test we have this line:
frm.addObject(dabo.ui.dTextBox, DataSource=biz.DataSource,
DataField="cField", RegID="cField")
Shouldn't the fields DataSource be set after this?
Checking just after that was run the following I see that it contains "".
frm.cField.DataSource
It that should contain the biz.DataSource can someone give me some tips
on where to first look for this problem.
Werner
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]