"""if a compare of Integer and BigInteger is supported yet."""
return exclusions.skip_if(["oracle"], "not supported by alembic impl")
+ @property
+ def check_constraint_reflection(self):
+ return exclusions.fails_on_everything_except(
+ "postgresql", "sqlite", self._mariadb_102
+ )
+
+ @property
+ def mysql_check_reflection_or_none(self):
+ def go(config):
+ return not self._mariadb_102(config) \
+ or self.sqlalchemy_1115.enabled
+ return exclusions.succeeds_if(go)
+
@property
def mysql_timestamp_reflection(self):
def go(config):
def test_rename_column_boolean(self):
super(BatchRoundTripMySQLTest, self).test_rename_column_boolean()
- @exclusions.fails_if(config.requirements._mariadb_102)
+ @config.requirements.mysql_check_reflection_or_none
def test_change_type_boolean_to_int(self):
super(BatchRoundTripMySQLTest, self).test_change_type_boolean_to_int()
- @exclusions.fails_if(config.requirements._mariadb_102)
+ @config.requirements.mysql_check_reflection_or_none
def test_change_type_int_to_boolean(self):
super(BatchRoundTripMySQLTest, self).test_change_type_int_to_boolean()
+
class BatchRoundTripPostgresqlTest(BatchRoundTripTest):
__only_on__ = "postgresql"