summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/requirements.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-10-04 18:26:55 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-10-04 18:26:55 -0400
commit70be21311772c687105802850380050bfeb4bd82 (patch)
tree943c77a08957fbd80745f294b849350092981218 /lib/sqlalchemy/testing/requirements.py
parent0b1452bf1122527b0486cfb3b024d61e9d3c876b (diff)
downloadsqlalchemy-70be21311772c687105802850380050bfeb4bd82.tar.gz
- add back __engine_options__
- break test_insert tests into explicitly get_lastrowid() vs. implicit_returning tests, fix up requirements to split them out
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r--lib/sqlalchemy/testing/requirements.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py
index 8a5a82cdb..560bc9c97 100644
--- a/lib/sqlalchemy/testing/requirements.py
+++ b/lib/sqlalchemy/testing/requirements.py
@@ -87,6 +87,26 @@ class SuiteRequirements(Requirements):
)
@property
+ def implements_get_lastrowid(self):
+ """"target dialect implements the executioncontext.get_lastrowid()
+ method without reliance on RETURNING.
+
+ """
+ return exclusions.open()
+
+ @property
+ def emulated_lastrowid(self):
+ """"target dialect retrieves cursor.lastrowid, or fetches
+ from a database-side function after an insert() construct executes,
+ within the get_lastrowid() method.
+
+ Only dialects that "pre-execute", or need RETURNING to get last
+ inserted id, would return closed/fail/skip for this.
+
+ """
+ return exclusions.closed()
+
+ @property
def dbapi_lastrowid(self):
""""target platform includes a 'lastrowid' accessor on the DBAPI
cursor object.