summaryrefslogtreecommitdiff
path: root/test/sql/test_selectable.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-03-30 18:36:52 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-03-30 18:36:52 +0000
commitb7ca7ed1b1e9dc67e1c6498a838e03880ad5e8c6 (patch)
treef1428b30f8db64c36ee977c52e48407fe0a4a98f /test/sql/test_selectable.py
parent9731484f5c991b56e64349ef7b9775ef83b18402 (diff)
parent4e754a8914a1c2c16c97bdf363d2e24bfa823730 (diff)
downloadsqlalchemy-b7ca7ed1b1e9dc67e1c6498a838e03880ad5e8c6.tar.gz
Merge "pep-484: the pep-484ening, SQL part three" into main
Diffstat (limited to 'test/sql/test_selectable.py')
-rw-r--r--test/sql/test_selectable.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py
index 4944f2d57..ca5f43bb6 100644
--- a/test/sql/test_selectable.py
+++ b/test/sql/test_selectable.py
@@ -208,6 +208,24 @@ class SelectableTest(
{"name": "table1", "table": table1},
[],
),
+ (
+ table1.alias("some_alias"),
+ None,
+ {
+ "name": "some_alias",
+ "table": testing.eq_clause_element(table1.alias("some_alias")),
+ },
+ [],
+ ),
+ (
+ table1.join(table2),
+ None,
+ {
+ "name": None,
+ "table": testing.eq_clause_element(table1.join(table2)),
+ },
+ [],
+ ),
argnames="entity, cols, expected_entity, expected_returning",
)
def test_dml_descriptions(