summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/suite/test_insert.py
diff options
context:
space:
mode:
authorJim Fulton <jim@jimfulton.info>2021-05-18 14:09:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-05-24 13:20:16 -0400
commit843427c9cc10036e164d85bf32f88a9bffa512bb (patch)
tree957c206167a272de6b06f7cf49a2843ebb011f84 /lib/sqlalchemy/testing/suite/test_insert.py
parentb20b6f8fe7ea0198f819a0fd68ca076b6c760054 (diff)
downloadsqlalchemy-843427c9cc10036e164d85bf32f88a9bffa512bb.tar.gz
Provide primary key values for data in tests that aren't about primary keys.
(message written by Mike) some backends such as BigQuery have no autoincrement mechanism at all. while we would like to pursue a strategy where provisioning.py could provide for an in-Python sequence generator, at least remove the need for autoincrement in suite tests that don't need it. Fixes: #6469 Closes: #6504 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6504 Pull-request-sha: c075014ef7de33e6eb3f389d24251ba184655e0b Change-Id: I98e237a38417b68c87d0201717205d7655b1f44e
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_insert.py')
-rw-r--r--lib/sqlalchemy/testing/suite/test_insert.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_insert.py b/lib/sqlalchemy/testing/suite/test_insert.py
index 3c033a774..3c22f50b2 100644
--- a/lib/sqlalchemy/testing/suite/test_insert.py
+++ b/lib/sqlalchemy/testing/suite/test_insert.py
@@ -109,6 +109,7 @@ class InsertBehaviorTest(fixtures.TablesTest):
),
)
+ @requirements.autoincrement_insert
def test_autoclose_on_insert(self):
if requirements.returning.enabled:
engine = engines.testing_engine(