comparison test/test_sqlite.py @ 6802:044dcf3608a2

update session db tests session_common.py: testList had no asserts. While adding them I found out the memory and anydbm backends return byte strings while the rdbms backend return strings. So added a call to s2b defined in each db test file to covert. rdbms i a no-op and memory/anydbm call roundup.anypy.strings::s2b(). also add some data to other tests and verify it. other files: define s2b appropriately.
author John Rouillard <rouilj@ieee.org>
date Mon, 25 Jul 2022 15:02:30 -0400
parents 0d99ae7c8de6
children bdd28b244839
comparison
equal deleted inserted replaced
6801:23dbb94466e6 6802:044dcf3608a2
96 backend = 'sqlite' 96 backend = 'sqlite'
97 97
98 98
99 from .session_common import SessionTest 99 from .session_common import SessionTest
100 class sqliteSessionTest(sqliteOpener, SessionTest, unittest.TestCase): 100 class sqliteSessionTest(sqliteOpener, SessionTest, unittest.TestCase):
101 pass 101 s2b = lambda x,y : y
102 102
103 class sqliteRestTest (RestTestCase, unittest.TestCase): 103 class sqliteRestTest (RestTestCase, unittest.TestCase):
104 backend = 'sqlite' 104 backend = 'sqlite'

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