Skip to content

Commit 79c6b45

Browse files
committed
conftest change to backport to ch 5, isolation serializable in all pg tests
1 parent ff35294 commit 79c6b45

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
@@ -49,7 +49,7 @@ def wait_for_redis_to_come_up():
4949

5050
@pytest.fixture(scope="session")
5151
def postgres_db():
52-
engine = create_engine(config.get_postgres_uri())
52+
engine = create_engine(config.get_postgres_uri(), isolation_level="SERIALIZABLE")
5353
wait_for_postgres_to_come_up(engine)
5454
metadata.create_all(engine)
5555
return engine

0 commit comments

Comments
 (0)