Here are the examples of the python api sqlalchemy.testing.exclusions.skip_if taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
101 Examples
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def deferrable_or_no_constraints(self):
"""Target database must support deferrable constraints."""
return skip_if([
no_support('firebird', 'not supported by database'),
no_support('mysql', 'not supported by database'),
no_support('mssql', 'not supported by database'),
])
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def implicitly_named_constraints(self):
"""target database must apply names to unnamed constraints."""
return skip_if([
no_support('sqlite', 'not supported by database'),
])
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def foreign_keys(self):
"""Target database must support foreign keys."""
return skip_if(
no_support('sqlite', 'not supported by database')
)
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def on_update_cascade(self):
"""target database must support ON UPDATE..CASCADE behavior in
foreign keys."""
return skip_if(
['sqlite', 'oracle'],
'target backend %(doesnt_support)s ON UPDATE CASCADE'
)
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
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')
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def unbounded_varchar(self):
"""Target database must support VARCHAR with no length"""
return skip_if([
"firebird", "oracle", "mysql"
], "not supported by database"
)
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def boolean_col_expressions(self):
"""Target database must support boolean expressions as columns"""
return skip_if([
no_support('firebird', 'not supported by database'),
no_support('oracle', 'not supported by database'),
no_support('mssql', 'not supported by database'),
no_support('sybase', 'not supported by database'),
])
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def standalone_binds(self):
"""target database/driver supports bound parameters as column expressions
without being in the context of a typed column.
"""
return skip_if(["firebird", "mssql+mxodbc"], "not supported by driver")
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def idensaty(self):
"""Target database must support GENERATED AS IDENsatY or a facsimile.
Includes GENERATED AS IDENsatY, AUTOINCREMENT, AUTO_INCREMENT, or other
column DDL feature that fills in a DB-generated identifier at
INSERT-time without requiring pre-execution of a SEQUENCE or other
artifact.
"""
return skip_if(["firebird", "oracle", "postgresql", "sybase"],
"not supported by database")
3
View Complete Implementation : requirements.py
Copyright MIT License
Author : operator
Copyright MIT License
Author : operator
@property
def temporary_tables(self):
"""target database supports temporary tables"""
return skip_if(
["mssql", "firebird"], "not supported (?)"
)