Import alembic.config as alembic_config
This commit is contained in:
parent
dc45c689c4
commit
de5e49b497
1 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import os
|
|||
import pytest
|
||||
import sqlalchemy as sa
|
||||
from alembic import command as alembic_cmd
|
||||
from alembic import config as migrations_config
|
||||
from alembic import config as alembic_config
|
||||
from sqlalchemy import orm
|
||||
|
||||
from velofy import config
|
||||
|
|
@ -59,7 +59,7 @@ def db_connection(request):
|
|||
connection.execute(sa.text(f"CREATE SCHEMA {config.CLEAN_SCHEMA};"))
|
||||
db.Base.metadata.create_all(connection)
|
||||
else:
|
||||
cfg = migrations_config.Config("alembic.ini")
|
||||
cfg = alembic_config.Config("alembic.ini")
|
||||
alembic_cmd.upgrade(cfg, "head")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue