or could these be due Windows/Linux?

 On 3/6/2015 10:31, Werner wrote:
Hi,

Could it be that the tests have not been updated along with changes done to Dabo?

E.g. lib\test_utils.py and 'utils.resolvePath', I assume the correct return is "a\\b\\file2"?

 File "d:\devTools\dabo\dabo\lib\test\test_utils.py", line 85, in <module>
  unittest.TextTestRunner(verbosity=2).run(suite)
File "C:\Python27\Lib\unittest\runner.py", line 151, in run
  test(result)
File "C:\Python27\Lib\unittest\suite.py", line 70, in __call__
  return self.run(*args, **kwds)
File "C:\Python27\Lib\unittest\suite.py", line 108, in run
  test(result)
File "C:\Python27\Lib\unittest\case.py", line 393, in __call__
  return self.run(*args, **kwds)
File "C:\Python27\Lib\unittest\case.py", line 329, in run
  testMethod()
 File "d:\devTools\dabo\dabo\lib\test\test_utils.py", line 66, in test_Pathing
  self.assertEqual(utils.resolvePath(pth), "a/b/file2")
File "C:\Python27\Lib\unittest\case.py", line 513, in assertEqual
  assertion_func(first, second, msg=msg)
File "C:\Python27\Lib\unittest\case.py", line 506, in _baseAssertEqual
  raise self.failureException(msg)

AssertionError: 'a\\b\\file2' != 'a/b/file2'


On 3/5/2015 15:09, Werner wrote:
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

[excessive quoting removed by server]

_______________________________________________
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]

Reply via email to