summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/requirements.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-02-06 15:49:32 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-02-06 15:49:32 -0500
commit2121c1690a17090a4027874751e90d02b4126fd2 (patch)
tree964a461f3d2ae21c6fcb3dd425d94e1274ee2776 /lib/sqlalchemy/testing/requirements.py
parent17790c9896e8ace4276b12b5f2cfcd366afae7e9 (diff)
downloadsqlalchemy-2121c1690a17090a4027874751e90d02b4126fd2.tar.gz
- add an "empty_inserts" requirement target plus a suite test
- add suite tests for basic explicit Sequence support, result-row column access (tests that name_normalize is set correctly among many other things)
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r--lib/sqlalchemy/testing/requirements.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py
index 2fb1b3143..f7d00afb2 100644
--- a/lib/sqlalchemy/testing/requirements.py
+++ b/lib/sqlalchemy/testing/requirements.py
@@ -69,6 +69,16 @@ class SuiteRequirements(Requirements):
return exclusions.open()
@property
+ def empty_inserts(self):
+ """target platform supports INSERT with no values, i.e.
+ INSERT DEFAULT VALUES or equivalent."""
+
+ return exclusions.only_if(
+ lambda: self.config.db.dialect.supports_empty_insert,
+ "empty inserts not supported"
+ )
+
+ @property
def returning(self):
"""target platform supports RETURNING."""