diff options
author | Paul Johnston <paj@pajhome.org.uk> | 2007-08-17 18:08:28 +0000 |
---|---|---|
committer | Paul Johnston <paj@pajhome.org.uk> | 2007-08-17 18:08:28 +0000 |
commit | 3959a1ae3ffc8bc4e573ad373ac074fbaf6a07fc (patch) | |
tree | 8d34b6a6212d33a2ff3f57a0ad8ea493cf0ad6d3 | |
parent | d80aca8c0a344be7c4a3c312728a46a88f558577 (diff) | |
download | sqlalchemy-3959a1ae3ffc8bc4e573ad373ac074fbaf6a07fc.tar.gz |
Avoid textual SQL in unit tests, so MSSQL has a chance to use 'identity insert' mode
-rw-r--r-- | test/orm/eagertest3.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/orm/eagertest3.py b/test/orm/eagertest3.py index 8e7735812..d9acabc62 100644 --- a/test/orm/eagertest3.py +++ b/test/orm/eagertest3.py @@ -456,10 +456,10 @@ class EagerTest6(testbase.ORMTest): ) def setUp(self): - testbase.db.execute("INSERT INTO prj (title) values('project 1');") - testbase.db.execute("INSERT INTO task_status (id) values(1);") - testbase.db.execute("INSERT INTO task_type(id) values(1);") - testbase.db.execute("INSERT INTO task (title, task_type_id, status_id, prj_id) values('task 1',1,1,1);") + testbase.db.execute(project_t.insert(), {'title':'project 1'}) + testbase.db.execute(task_status_t.insert(), {'id':1}) + testbase.db.execute(task_type_t.insert(), {'id':1}) + testbase.db.execute(task_t.insert(), {'title':'task 1', 'task_type_id':1, 'status_id':1, 'prj_id':1}) def test_nested_joins(self): # this is testing some subtle column resolution stuff, |