Mike Bayer committed ca26e3f

failing test case re: compilation

Comments (0)

Files changed (1)


         print session.query(Engineer).select()
         print session.query(Person).select()        
+    def testcompile2(self):
+        """this test fails.  mapper compilation completely doesnt work for this right now and likely
+        needs to be rewritten again."""
+        person_join = polymorphic_union( {
+            'engineer':people.join(engineers),
+            'manager':people.join(managers),
+            'person''person'),
+            }, None, 'pjoin')
+        person_mapper = mapper(Person, people, select_table=person_join, polymorphic_on=person_join.c.type,
+                    polymorphic_identity='person', 
+                    properties = dict(managers = relation(Manager, lazy=True))
+                )
+        mapper(Engineer, engineers, inherits=person_mapper, polymorphic_identity='engineer')
+        mapper(Manager, managers, inherits=person_mapper, polymorphic_identity='manager')
+        #person_mapper.compile()
+        class_mapper(Manager).compile()
     def do_test(self, include_base=False, lazy_relation=True, redefine_colprop=False):
         """tests the example, with several options:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.