summaryrefslogtreecommitdiff
path: root/test/orm/test_query.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_query.py')
-rw-r--r--test/orm/test_query.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/orm/test_query.py b/test/orm/test_query.py
index 8f962d581..b31647a72 100644
--- a/test/orm/test_query.py
+++ b/test/orm/test_query.py
@@ -2880,6 +2880,15 @@ class FilterTest(QueryTest, AssertsCompiledSQL):
checkparams={"email_address_1": "ed@ed.com", "name_1": "ed"},
)
+ def test_empty_filters(self):
+ User = self.classes.User
+ sess = create_session()
+
+ q1 = sess.query(User)
+
+ is_(None, q1.filter().whereclause)
+ is_(None, q1.filter_by().whereclause)
+
def test_filter_by_no_property(self):
addresses = self.tables.addresses
sess = create_session()