comparison test/db_test_base.py @ 7914:ecf0368a05da

issue2551334 - get test suite running under windows Add a commit() to finish a transaction in test suite so close() under windows can close filehandles to the database.
author John Rouillard <rouilj@ieee.org>
date Sun, 28 Apr 2024 09:19:31 -0400
parents aa32e3535766
children a9b136565838
comparison
equal deleted inserted replaced
7913:6102ae426390 7914:ecf0368a05da
409 self.db.commit() 409 self.db.commit()
410 self.assertEqual(self.db.issue.get(nid, 'title'), ustr2) 410 self.assertEqual(self.db.issue.get(nid, 'title'), ustr2)
411 411
412 # test set & retrieve (this time for file contents) 412 # test set & retrieve (this time for file contents)
413 nid = self.db.file.create(content=ustr) 413 nid = self.db.file.create(content=ustr)
414 self.db.commit()
414 self.assertEqual(self.db.file.get(nid, 'content'), ustr) 415 self.assertEqual(self.db.file.get(nid, 'content'), ustr)
415 self.assertEqual(self.db.file.get(nid, 'binary_content'), s2b(ustr)) 416 self.assertEqual(self.db.file.get(nid, 'binary_content'), s2b(ustr))
416 417
417 def testStringBinary(self): 418 def testStringBinary(self):
418 ''' Create file with binary content that is not able 419 ''' Create file with binary content that is not able

Roundup Issue Tracker: http://roundup-tracker.org/