MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_mode_first

Method test_scalar_mode_first

test/base/test_result.py:1378–1385  ·  view source on GitHub ↗
(self, no_tuple_one_fixture, get)

Source from the content-addressed store, hash-verified

1376 argnames="get",
1377 )
1378 def test_scalar_mode_first(self, no_tuple_one_fixture, get):
1379 metadata = result.SimpleResultMetaData(["a", "b", "c"])
1380
1381 r = result.ChunkedIteratorResult(
1382 metadata, no_tuple_one_fixture, source_supports_scalars=True
1383 )
1384
1385 eq_(get(r), (1,))
1386
1387 @testing.combinations(
1388 lambda r: r.scalar(),

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
getFunction · 0.85

Tested by

no test coverage detected