summaryrefslogtreecommitdiff
path: root/test/ext/test_mutable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-12-29 20:54:29 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-01-25 09:28:28 -0500
commit93855ed623ceedffc02dee06c9a46c37dd26286b (patch)
tree5fdb783ea642d99693fd284dcbc04d4691423d16 /test/ext/test_mutable.py
parent78e598e3a5b8df7419a600c291f90260e598c9b7 (diff)
downloadsqlalchemy-93855ed623ceedffc02dee06c9a46c37dd26286b.tar.gz
Implement relationship to AliasedClass; deprecate non primary mappers
Implemented a new feature whereby the :class:`.AliasedClass` construct can now be used as the target of a :func:`.relationship`. This allows the concept of "non primary mappers" to no longer be necessary, as the :class:`.AliasedClass` is much easier to configure and automatically inherits all the relationships of the mapped class, as well as preserves the ability for loader options to work normally. - introduce new name for mapped_table, "persist_selectable". this is the selectable that selects against the local mapper and its superclasses, but does not include columns local only to subclasses. - relationship gains "entity" which is the mapper or aliasedinsp. - clarfiy name "entity" vs. "query_entity" in loader strategies. Fixes: #4423 Fixes: #4422 Fixes: #4421 Fixes: #3348 Change-Id: Ic3609b43dc4ed115006da9ad9189e574dc0c72d9
Diffstat (limited to 'test/ext/test_mutable.py')
-rw-r--r--test/ext/test_mutable.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/ext/test_mutable.py b/test/ext/test_mutable.py
index 9b8f761e9..eae764d40 100644
--- a/test/ext/test_mutable.py
+++ b/test/ext/test_mutable.py
@@ -824,15 +824,6 @@ class MutableWithScalarJSONTest(_MutableDictTestBase, fixtures.MappedTest):
self._test_non_mutable()
-class MutableIncludeNonPrimaryTest(MutableWithScalarJSONTest):
- @classmethod
- def setup_mappers(cls):
- foo = cls.tables.foo
-
- mapper(Foo, foo)
- mapper(Foo, foo, non_primary=True, properties={"foo_bar": foo.c.data})
-
-
class MutableColumnCopyJSONTest(_MutableDictTestBase, fixtures.MappedTest):
@classmethod
def define_tables(cls, metadata):
@@ -1013,15 +1004,6 @@ class MutableAssociationScalarPickleTest(
)
-class MutableAssocIncludeNonPrimaryTest(MutableAssociationScalarPickleTest):
- @classmethod
- def setup_mappers(cls):
- foo = cls.tables.foo
-
- mapper(Foo, foo)
- mapper(Foo, foo, non_primary=True, properties={"foo_bar": foo.c.data})
-
-
class MutableAssociationScalarJSONTest(
_MutableDictTestBase, fixtures.MappedTest
):