__only_on__ = 'mysql'
+ @testing.uses_deprecated('Manually quoting ENUM value literals')
def test_basic(self):
meta1 = MetaData(testing.db)
table = Table(
finally:
meta.drop_all()
+ @testing.uses_deprecated('Manually quoting ENUM value literals')
def test_enum(self):
"""Exercise the ENUM type."""
enum_table.drop()
@testing.exclude('mysql', '<', (4,), "3.23 can't handle an ENUM of ''")
+ @testing.uses_deprecated('Manually quoting ENUM value literals')
def test_enum_parse(self):
"""More exercises for the ENUM type."""
@testing.exclude('mysql', '<', (5, 0, 0), 'early types are squirrely')
@testing.uses_deprecated('Using String type with no length')
+ @testing.uses_deprecated('Manually quoting ENUM value literals')
def test_type_reflection(self):
# (ask_for, roundtripped_as_if_different)
specs = [( String(1), mysql.MSString(1), ),
q5 = s.query(User, literal("y"))
q6 = q4.union(q5)
- for q in (q3, q6):
- eq_(q.order_by(User.id).all(),
+ for q in (q3.order_by(User.id, "anon_1_anon_2"), q6.order_by(User.id, "foo")):
+ eq_(q.all(),
[
(User(id=7, name=u'jack'), u'x'),
(User(id=7, name=u'jack'), u'y'),