Skip to content

Commit 8cff3ee

Browse files
committed
conftest change to backport to ch 5, isolation serializable in all pg tests
1 parent 1f68a61 commit 8cff3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def wait_for_redis_to_come_up():
4747

4848
@pytest.fixture(scope='session')
4949
def postgres_db():
50-
engine = create_engine(config.get_postgres_uri())
50+
engine = create_engine(config.get_postgres_uri(), isolation_level='SERIALIZABLE')
5151
wait_for_postgres_to_come_up(engine)
5252
metadata.create_all(engine)
5353
return engine

0 commit comments

Comments
 (0)