예제 #1
0
 def test_scalar_strings(self, scalar_strings, connection):
     fn = func.scalar_strings(5)
     result = connection.execute(select(fn.column_valued())).scalars().all()
     eq_(result, ["some string"] * 5)
예제 #2
0
 def test_scalar_strings(self, scalar_strings, connection):
     fn = func.scalar_strings().table_valued("my_string")
     result = connection.execute(select(fn.c.my_string)).scalars().all()
     eq_(result, ["some string"] * 3)