summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/polymorph.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-12 22:03:42 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-12 22:03:42 +0000
commit17d3c8764e020379e54053bca0b0a2bc71d48aa0 (patch)
tree0b46f1ddc57292b8f5bfbc28ab1679230f63e426 /test/orm/inheritance/polymorph.py
parentc194962019d1bc7322e20b82c33aa1bab3bc2a28 (diff)
downloadsqlalchemy-17d3c8764e020379e54053bca0b0a2bc71d48aa0.tar.gz
- testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
Diffstat (limited to 'test/orm/inheritance/polymorph.py')
-rw-r--r--test/orm/inheritance/polymorph.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/orm/inheritance/polymorph.py b/test/orm/inheritance/polymorph.py
index cf91dbe77..d2d83ea3c 100644
--- a/test/orm/inheritance/polymorph.py
+++ b/test/orm/inheritance/polymorph.py
@@ -1,6 +1,6 @@
"""tests basic polymorphic mapper loading/saving, minimal relations"""
-import testbase
+import testenv; testenv.configure_for_tests()
import sets
from sqlalchemy import *
from sqlalchemy.orm import *
@@ -294,15 +294,15 @@ def generate_round_trip_test(include_base=False, lazy_relation=True, redefine_co
if not lazy_relation:
if polymorphic_fetch=='union':
- self.assert_sql_count(testbase.db, go, 1)
+ self.assert_sql_count(testing.db, go, 1)
else:
- self.assert_sql_count(testbase.db, go, 5)
+ self.assert_sql_count(testing.db, go, 5)
else:
if polymorphic_fetch=='union':
- self.assert_sql_count(testbase.db, go, 2)
+ self.assert_sql_count(testing.db, go, 2)
else:
- self.assert_sql_count(testbase.db, go, 6)
+ self.assert_sql_count(testing.db, go, 6)
# test selecting from the query, using the base mapped table (people) as the selection criterion.
# in the case of the polymorphic Person query, the "people" selectable should be adapted to be "person_join"
@@ -364,4 +364,4 @@ for include_base in [True, False]:
generate_round_trip_test(include_base, lazy_relation, redefine_colprop, use_literal_join, polymorphic_fetch, False)
if __name__ == "__main__":
- testbase.main()
+ testenv.main()