diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/mapper.py | 2 | ||||
| -rw-r--r-- | test/testbase.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/mapper.py b/test/mapper.py index 95ab4cb66..2c5cfa7e2 100644 --- a/test/mapper.py +++ b/test/mapper.py @@ -625,7 +625,7 @@ class EagerTest(MapperSuperTest): items = orderitems m = mapper(Item, items, properties = dict( - keywords = relation(Keyword, keywords, itemkeywords, lazy = False), + keywords = relation(Keyword, keywords, itemkeywords, lazy=False), )) l = m.select() self.assert_result(l, Item, *item_keyword_result) diff --git a/test/testbase.py b/test/testbase.py index c1342a5fc..825d540fa 100644 --- a/test/testbase.py +++ b/test/testbase.py @@ -23,17 +23,17 @@ def parse_argv(): global db if DBTYPE == 'sqlite': try: - db = engine.create_engine('sqlite://filename=:memory:', echo = echo) + db = engine.create_engine('sqlite://filename=:memory:', echo=echo, default_ordering=True) except: raise "Could not create sqlite engine. specify --db <sqlite|sqlite_file|postgres|mysql|oracle> to test runner." elif DBTYPE == 'sqlite_file': - db = engine.create_engine('sqlite://filename=querytest.db', echo = echo) + db = engine.create_engine('sqlite://filename=querytest.db', echo=echo, default_ordering=True) elif DBTYPE == 'postgres': - db = engine.create_engine('postgres://database=test&host=127.0.0.1&user=scott&password=tiger', echo=echo) + db = engine.create_engine('postgres://database=test&host=127.0.0.1&user=scott&password=tiger', echo=echo, default_ordering=True) elif DBTYPE == 'mysql': - db = engine.create_engine('mysql://db=test&host=127.0.0.1&user=scott&passwd=tiger', echo=echo) + db = engine.create_engine('mysql://db=test&host=127.0.0.1&user=scott&passwd=tiger', echo=echo, default_ordering=True) elif DBTYPE == 'oracle': - db = engine.create_engine('oracle://user=scott&password=tiger', echo=echo) + db = engine.create_engine('oracle://user=scott&password=tiger', echo=echo, default_ordering=True) db = EngineAssert(db) class PersistTest(unittest.TestCase): |
