class AutogenCrossSchemaTest(AutogenTest, TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
@classmethod
def _get_db_schema(cls):
class AutogenDefaultSchemaTest(AutogenFixtureTest, TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
def test_uses_explcit_schema_in_default_one(self):
class AutogenerateDiffTestWSchema(ModelOne, AutogenTest, TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
schema = "test_schema"
def test_diffs(self):
class AutogenCustomVersionTableSchemaTest(AutogenVersionTableTest):
__only_on__ = 'postgresql'
+ __backend__ = True
version_table_schema = 'test_schema'
configure_opts = {'version_table_schema': 'test_schema'}
class AutogenCustomVersionTableAndSchemaTest(AutogenVersionTableTest):
__only_on__ = 'postgresql'
+ __backend__ = True
version_table_name = 'my_version_table'
version_table_schema = 'test_schema'
configure_opts = {
class PGCompareMetaData(ModelOne, AutogenTest, TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
schema = "test_schema"
def test_compare_metadata_schema(self):
class PGUniqueIndexTest(AutogenerateUniqueIndexTest):
reports_unnamed_constraints = True
__only_on__ = "postgresql"
+ __backend__ = True
def test_idx_added_schema(self):
m1 = MetaData()
reports_unnamed_constraints = True
reports_unique_constraints_as_indexes = True
__only_on__ = 'mysql'
+ __backend__ = True
def test_removed_idx_index_named_as_column(self):
try:
reports_unnamed_constraints = True
reports_unique_constraints_as_indexes = True
__only_on__ = "oracle"
-
+ __backend__ = True
class NoUqReflectionIndexTest(NoUqReflection, AutogenerateUniqueIndexTest):
reports_unique_constraints = False
class MySQLDefaultCompareTest(TestBase):
__only_on__ = 'mysql'
+ __backend__ = True
@classmethod
def setup_class(cls):
class PostgresqlInlineLiteralTest(TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
@classmethod
def setup_class(cls):
class PostgresqlDefaultCompareTest(TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
+
@classmethod
def setup_class(cls):
class PostgresqlDetectSerialTest(TestBase):
__only_on__ = 'postgresql'
+ __backend__ = True
@classmethod
def setup_class(cls):
BASECOMMAND=python -m pytest
WORKERS=-n4
sqla079: WORKERS=--dropfirst
- oracle: WORKERS=-n2
cov: COVERAGE={[testenv]cov_args}
sqlite: SQLITE={env:TOX_SQLITE:--db sqlite}
postgresql: POSTGRESQL={env:TOX_POSTGRESQL:--db postgresql}