diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-02-13 20:37:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-02-13 20:37:12 +0000 |
commit | d6b3c82b0c329730bcaff42b4bb39dba83acb536 (patch) | |
tree | d6b7f744a35c8d89615eeb0504ee7a4193f95642 /test/ext/declarative/test_inheritance.py | |
parent | 260ade78a70d51378de9e7b9456bfe6218859b6c (diff) | |
parent | e545298e35ea9f126054b337e4b5ba01988b29f7 (diff) | |
download | sqlalchemy-d6b3c82b0c329730bcaff42b4bb39dba83acb536.tar.gz |
Merge "establish mypy / typing approach for v2.0" into main
Diffstat (limited to 'test/ext/declarative/test_inheritance.py')
-rw-r--r-- | test/ext/declarative/test_inheritance.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/ext/declarative/test_inheritance.py b/test/ext/declarative/test_inheritance.py index 64c32c76b..a695aadba 100644 --- a/test/ext/declarative/test_inheritance.py +++ b/test/ext/declarative/test_inheritance.py @@ -547,9 +547,9 @@ class ConcreteInhTest( configure_mappers() self.assert_compile( select(Employee), - "SELECT pjoin.name, pjoin.employee_id, pjoin.type, pjoin._type " - "FROM (SELECT manager.name AS name, manager.employee_id AS " - "employee_id, manager.type AS type, 'manager' AS _type " + "SELECT pjoin.employee_id, pjoin.type, pjoin.name, pjoin._type " + "FROM (SELECT manager.employee_id AS employee_id, " + "manager.type AS type, manager.name AS name, 'manager' AS _type " "FROM manager) AS pjoin", ) @@ -859,13 +859,13 @@ class ConcreteExtensionConfigTest( session = Session() self.assert_compile( session.query(Document), - "SELECT pjoin.doctype AS pjoin_doctype, " - "pjoin.send_method AS pjoin_send_method, " - "pjoin.id AS pjoin_id, pjoin.type AS pjoin_type " - "FROM (SELECT actual_documents.doctype AS doctype, " + "SELECT pjoin.id AS pjoin_id, pjoin.send_method AS " + "pjoin_send_method, pjoin.doctype AS pjoin_doctype, " + "pjoin.type AS pjoin_type FROM " + "(SELECT actual_documents.id AS id, " "actual_documents.send_method AS send_method, " - "actual_documents.id AS id, 'actual' AS type " - "FROM actual_documents) AS pjoin", + "actual_documents.doctype AS doctype, " + "'actual' AS type FROM actual_documents) AS pjoin", ) def test_column_attr_names(self): @@ -886,14 +886,14 @@ class ConcreteExtensionConfigTest( session.query(Document), "SELECT pjoin.documenttype AS pjoin_documenttype, " "pjoin.id AS pjoin_id, pjoin.type AS pjoin_type FROM " - "(SELECT offers.documenttype AS documenttype, offers.id AS id, " + "(SELECT offers.id AS id, offers.documenttype AS documenttype, " "'offer' AS type FROM offers) AS pjoin", ) self.assert_compile( session.query(Document.documentType), "SELECT pjoin.documenttype AS pjoin_documenttype FROM " - "(SELECT offers.documenttype AS documenttype, offers.id AS id, " + "(SELECT offers.id AS id, offers.documenttype AS documenttype, " "'offer' AS type FROM offers) AS pjoin", ) |