Skip to content

Commit b4e4a3c

Browse files
committed
alembic config
1 parent 033f243 commit b4e4a3c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api_v1/tests/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
)
2323

2424

25-
cfg = Config(settings.alembic.CONFIG_PATH.as_posix())
25+
cfg = Config()
26+
cfg.set_main_option(
27+
'sqlalchemy.url',
28+
settings.test_db.url,
29+
)
2630
cfg.set_main_option('script_location',
2731
settings.alembic.MIGRATION_PATH.as_posix(),
2832
)

0 commit comments

Comments
 (0)