MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_too_long_name_disallowed

Method test_too_long_name_disallowed

test/sql/test_labels.py:233–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 )
232
233 def test_too_long_name_disallowed(self):
234 m = MetaData()
235 t = Table(
236 "this_name_is_too_long_for_what_were_doing_in_this_test",
237 m,
238 Column("foo", Integer),
239 )
240 eng = self._engine_fixture()
241 methods = (t.create, t.drop, m.create_all, m.drop_all)
242 for meth in methods:
243 assert_raises(exceptions.IdentifierError, meth, eng)
244
245 def _assert_labeled_table1_select(self, s):
246 table1 = self.table1

Callers

nothing calls this directly

Calls 5

_engine_fixtureMethod · 0.95
MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
assert_raisesFunction · 0.90

Tested by

no test coverage detected