summaryrefslogtreecommitdiff
path: root/test/orm/test_attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-10 18:27:23 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-10 18:27:23 -0500
commite05c91acaa38e376e9cd833920ad3d0e0bd9c660 (patch)
tree1d905d80e76c5b336617df945cfb684e2e55ca7b /test/orm/test_attributes.py
parent67259bfef1068b46ea72f04718de5bb514093dd2 (diff)
downloadsqlalchemy-e05c91acaa38e376e9cd833920ad3d0e0bd9c660.tar.gz
- callcounts
Diffstat (limited to 'test/orm/test_attributes.py')
-rw-r--r--test/orm/test_attributes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/orm/test_attributes.py b/test/orm/test_attributes.py
index c0481f96b..b543e79a1 100644
--- a/test/orm/test_attributes.py
+++ b/test/orm/test_attributes.py
@@ -1186,6 +1186,7 @@ class HistoryTest(_base.ORMTest):
assert False
instrumentation.register_class(Foo)
+ instrumentation.register_class(Bar)
attributes.register_attribute(Foo, 'someattr', uselist=True, useobject=True)
hi = Bar(name='hi')
@@ -1238,6 +1239,7 @@ class HistoryTest(_base.ORMTest):
from sqlalchemy.orm.collections import attribute_mapped_collection
instrumentation.register_class(Foo)
+ instrumentation.register_class(Bar)
attributes.register_attribute(Foo, 'someattr', uselist=True, useobject=True, typecallable=attribute_mapped_collection('name'))
hi = Bar(name='hi')
@@ -1266,6 +1268,7 @@ class HistoryTest(_base.ORMTest):
instrumentation.register_class(Foo)
attributes.register_attribute(Foo, 'someattr', uselist=True, useobject=True)
attributes.register_attribute(Foo, 'id', uselist=False, useobject=False)
+ instrumentation.register_class(Bar)
hi = Bar(name='hi')
there = Bar(name='there')