Skip to content

Commit

Permalink
Revert "fix?"
Browse files Browse the repository at this point in the history
This reverts commit 6561e49.
  • Loading branch information
AndreasAlbertQC committed Jul 15, 2024
1 parent 6561e49 commit 6f46380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quetz/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ def sql_connection(engine):
@pytest.fixture
def alembic_config(database_url, sql_connection):
alembic_config = _alembic_config(database_url)
alembic_config.attributes["engine"] = sql_connection.engine
alembic_config.attributes["connection"] = sql_connection
return alembic_config


@pytest.fixture
def create_tables(alembic_config, engine, use_migrations):
if use_migrations:
alembic_upgrade(alembic_config, "head", sql=False)
alembic_upgrade(alembic_config, "heads", sql=False)
else:
Base.metadata.create_all(engine)

Expand Down

0 comments on commit 6f46380

Please sign in to comment.