Skip to content

Commit

Permalink
fixed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargis Sultani committed Oct 23, 2023
1 parent 90ff315 commit ddee750
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/migrations/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

from pytest_alembic.config import Config
from sqlalchemy import create_engine


@pytest.fixture
def alembic_config():
"""Override this fixture to configure the exact alembic context setup required."""
return Config()


@pytest.fixture
def alembic_engine():
"""Override this fixture to provide pytest-alembic powered tests with a database handle."""
return create_engine("sqlite:///")
File renamed without changes.

0 comments on commit ddee750

Please sign in to comment.