Add test for scalar selectables

This commit is contained in:
Konsta Vesterinen
2015-07-22 18:28:02 +03:00
parent 1328ebd697
commit 36ba976780

View File

@@ -40,3 +40,7 @@ class TestGetType(object):
def test_relationship_property(self):
assert get_type(self.Article.author) == self.User
def test_scalar_select(self):
query = sa.select([self.Article.id]).as_scalar()
assert isinstance(get_type(query), sa.Integer)