MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_values_illegal

Method test_values_illegal

test/sql/test_operators.py:4954–4963  ·  view source on GitHub ↗
(self, t_fixture, fn)

Source from the content-addressed store, hash-verified

4952
4953 @testing.combinations(any_, all_, argnames="fn")
4954 def test_values_illegal(self, t_fixture, fn):
4955 t = t_fixture
4956
4957 with expect_raises_message(
4958 exc.ArgumentError,
4959 "SQL expression element expected, got .* "
4960 "To create a column expression from a VALUES clause, "
4961 r"use the .scalar_values\(\) method.",
4962 ):
4963 fn(values(t.c.data).data([(1,), (42,)]))
4964
4965
4966class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL):

Callers

nothing calls this directly

Calls 3

expect_raises_messageFunction · 0.90
valuesFunction · 0.90
dataMethod · 0.45

Tested by

no test coverage detected