Skip to content

Commit e3e4a35

Browse files
committed
Add additional helpers for testing support
- Implement get_isolation_levels to indicate to tests which levels are supported. - Implement temp_table_keyword_args to instruct tests how to make temp tables.
1 parent 8615acc commit e3e4a35

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from sqlalchemy.testing.provision import temp_table_keyword_args
2+
3+
4+
@temp_table_keyword_args.for_db("cockroachdb")
5+
def _cockroachdb_temp_table_keyword_args(cfg, eng):
6+
return {"prefixes": ["TEMPORARY"]}

cockroachdb/sqlalchemy/test_requirements.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,11 @@ class Requirements(SuiteRequirements):
7676
order_by_label_with_expression = exclusions.open()
7777
order_by_col_from_union = exclusions.open()
7878
implicitly_named_constraints = exclusions.open()
79+
80+
def get_isolation_levels(self, config):
81+
return {
82+
"default": "SERIALIZABLE",
83+
"supported": [
84+
"SERIALIZABLE"
85+
]
86+
}

0 commit comments

Comments
 (0)