Skip to content

Commit cd61dad

Browse files
authored
Adjust default sequence_step_size (#70)
* Adjust default sequence_step_size * Use single worker for tests because sequence does not support schema
1 parent 68ae1fb commit cd61dad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ban-relative-imports = True
6161
inline-quotes = "
6262
6363
[tool:pytest]
64-
addopts= --tb native -n4 -v -r fxX --maxfail=25 -p no:warnings
64+
addopts= --tb native -n1 -v -r fxX --maxfail=25 -p no:warnings
6565
python_files=tests/*test_*.py
6666
# python_functions=test_round_trip_same_named_column
6767
# log_level=DEBUG

tests/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
from sqlalchemy import event, text
1515
from sqlalchemy import Engine
1616

17-
1817
@event.listens_for(Engine, "connect")
1918
def receive_engine_connect(conn, r):
2019
cur = conn.cursor()
2120
cur.execute('SET global format_null_as_str = 0')
2221
cur.execute('SET global enable_geo_create_table = 1')
22+
try:
23+
cur.execute("SET global sequence_step_size = 1")
24+
except:
25+
pass # don't fail when this setting doesn't exist
2326
cur.close()
24-
25-

0 commit comments

Comments
 (0)