MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_wrong_number_of_elements

Method test_wrong_number_of_elements

test/sql/test_values.py:63–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 )
62
63 def test_wrong_number_of_elements(self):
64 v1 = values(
65 column("CaseSensitive", Integer),
66 column("has spaces", String),
67 name="Spaces and Cases",
68 ).data([(1, "textA", 99), (2, "textB", 88)])
69
70 with expect_raises_message(
71 exc.ArgumentError,
72 r"Wrong number of elements for 2-tuple: \(1, 'textA', 99\)",
73 ):
74 str(v1)
75
76 @testing.fixture
77 def _auto_proxy_fixture(self):

Callers

nothing calls this directly

Calls 4

valuesFunction · 0.90
columnFunction · 0.90
expect_raises_messageFunction · 0.90
dataMethod · 0.45

Tested by

no test coverage detected