Skip to content

Commit 9e838d0

Browse files
committed
chore(django-spanner): disable savepoints and remove legacy can_rollback_tests
1 parent 53f72fb commit 9e838d0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • packages/django-google-spanner/django_spanner

packages/django-google-spanner/django_spanner/features.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
5656
# Spanner does not support SELECTing an arbitrary expression that also
5757
# appears in the GROUP BY clause.
5858
supports_subqueries_in_group_by = False
59-
uses_savepoints = True
59+
uses_savepoints = False # Spanner does not support savepoints.
6060
can_rollback_tests = False # Spanner savepoints are no-ops; rely on flush.
6161
supports_aggregate_filter_clause = False
6262
# Spanner does not support expression indexes
@@ -274,6 +274,15 @@ class DatabaseFeatures(BaseDatabaseFeatures):
274274
if os.environ.get("SPANNER_EMULATOR_HOST", None):
275275
# Some code isn't yet supported by the Spanner emulator.
276276
skip_tests += (
277+
"fixtures_model_package.tests.FixtureTestCase.test_loaddata",
278+
"sessions_tests.tests.CacheDBSessionTests.test_session_asave_does_not_resurrect_session_logged_out_in_other_context",
279+
"sessions_tests.tests.CacheDBSessionTests.test_session_save_does_not_resurrect_session_logged_out_in_other_context",
280+
"sessions_tests.tests.CacheDBSessionWithTimeZoneTests.test_session_asave_does_not_resurrect_session_logged_out_in_other_context",
281+
"sessions_tests.tests.CacheDBSessionWithTimeZoneTests.test_session_save_does_not_resurrect_session_logged_out_in_other_context",
282+
"sessions_tests.tests.CustomDatabaseSessionTests.test_session_asave_does_not_resurrect_session_logged_out_in_other_context",
283+
"sessions_tests.tests.CustomDatabaseSessionTests.test_session_save_does_not_resurrect_session_logged_out_in_other_context",
284+
"sessions_tests.tests.DatabaseSessionTests.test_session_asave_does_not_resurrect_session_logged_out_in_other_context",
285+
"sessions_tests.tests.DatabaseSessionTests.test_session_save_does_not_resurrect_session_logged_out_in_other_context",
277286
# Data Leakage / Test Isolation Issues (Spanner Emulator Limitation)
278287
"model_inheritance.tests.ModelInheritanceDataTests.test_update_query_counts",
279288
"model_inheritance.tests.ModelInheritanceTests.test_create_child_no_update",

0 commit comments

Comments
 (0)