本文整理汇总了Python中sqlalchemy.testing.exclusions.fails_on_everything_except函数的典型用法代码示例。如果您正苦于以下问题:Python fails_on_everything_except函数的具体用法?Python fails_on_everything_except怎么用?Python fails_on_everything_except使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fails_on_everything_except函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: datetime_literals
def datetime_literals(self):
"""target dialect supports rendering of a date, time, or datetime as a
literal string, e.g. via the TypeEngine.literal_processor() method.
"""
return fails_on_everything_except("sqlite")
示例2: unique_constraint_reflection
def unique_constraint_reflection(self):
return fails_on_everything_except(
"postgresql",
"mysql",
"sqlite",
"oracle"
)
示例3: emulated_lastrowid
def emulated_lastrowid(self):
""""target dialect retrieves cursor.lastrowid or an equivalent
after an insert() construct executes.
"""
return fails_on_everything_except('mysql',
'sqlite+pysqlite', 'sqlite+pysqlcipher',
'sybase', 'mssql')
示例4: non_updating_cascade
def non_updating_cascade(self):
"""target database must *not* support ON UPDATE..CASCADE behavior in
foreign keys."""
return fails_on_everything_except(
"sqlite", "oracle", "+zxjdbc"
) + skip_if("mssql")
示例5: check_constraint_reflection
def check_constraint_reflection(self):
return fails_on_everything_except(
"postgresql",
"sqlite",
"oracle",
self._mysql_and_check_constraints_exist,
)
示例6: dbapi_lastrowid
def dbapi_lastrowid(self):
""""target backend includes a 'lastrowid' accessor on the DBAPI
cursor object.
"""
return skip_if('mssql+pymssql', 'crashes on pymssql') + \
fails_on_everything_except('mysql',
'sqlite+pysqlite', 'sqlite+pysqlcipher')
示例7: dbapi_lastrowid
def dbapi_lastrowid(self):
""""target backend includes a 'lastrowid' accessor on the DBAPI
cursor object.
"""
return skip_if(
"mssql+pymssql", "crashes on pymssql"
) + fails_on_everything_except(
"mysql", "sqlite+pysqlite", "sqlite+pysqlcipher"
)
示例8: reflects_pk_names
def reflects_pk_names(self):
"""Target driver reflects the name of primary key constraints."""
return fails_on_everything_except('postgresql', 'oracle', 'mssql',
'sybase')
示例9: nullsordering
def nullsordering(self):
"""Target backends that support nulls ordering."""
return fails_on_everything_except('postgresql', 'oracle', 'firebird')
示例10: non_updating_cascade
def non_updating_cascade(self):
"""target database must *not* support ON UPDATE..CASCADE behavior in
foreign keys."""
return fails_on_everything_except('sqlite', 'oracle', '+zxjdbc') + \
skip_if('mssql')
示例11: check_constraint_reflection
def check_constraint_reflection(self):
return fails_on_everything_except(
"postgresql",
"sqlite"
)
示例12: check_constraint_reflection
def check_constraint_reflection(self):
return fails_on_everything_except(
"postgresql", "sqlite", "oracle",
self._mariadb_102
)
示例13: reflects_pk_names
def reflects_pk_names(self):
"""Target driver reflects the name of primary key constraints."""
return fails_on_everything_except(
"postgresql", "oracle", "mssql", "sybase", "sqlite"
)