- sess.default_language = lang_en.id
+ # Note that this won't apply to sessions created in other threads, but that
+ # ought not be a problem!
+ sess.default_language_id = lang_en.id
if format not in good_formats:
raise AssertionError(assert_text % column)
is_markdown = isinstance(column.type, markdown.MarkdownColumn)
if format not in good_formats:
raise AssertionError(assert_text % column)
is_markdown = isinstance(column.type, markdown.MarkdownColumn)
raise AssertionError('%s: markdown format/column type mismatch' % column)
if (format != 'identifier') and (column.name == 'identifier'):
raise AssertionError('%s: identifier column name/type mismatch' % column)
raise AssertionError('%s: markdown format/column type mismatch' % column)
if (format != 'identifier') and (column.name == 'identifier'):
raise AssertionError('%s: identifier column name/type mismatch' % column)
"""
for table in sorted(tables.mapped_classes, key=lambda t: t.__name__):
if hasattr(table, 'name'):
assert hasattr(table, 'identifier'), table
"""
for table in sorted(tables.mapped_classes, key=lambda t: t.__name__):
if hasattr(table, 'name'):
assert hasattr(table, 'identifier'), table