From ddee750b4697213a3f8d9cb6738a7bcddf50f429 Mon Sep 17 00:00:00 2001 From: Nargis Sultani Date: Mon, 23 Oct 2023 04:20:19 -0400 Subject: [PATCH] fixed testing --- tests/migrations/conftest.py | 16 ++++++++++++++++ tests/{ => migrations}/test_migrations.py | 0 2 files changed, 16 insertions(+) create mode 100644 tests/migrations/conftest.py rename tests/{ => migrations}/test_migrations.py (100%) diff --git a/tests/migrations/conftest.py b/tests/migrations/conftest.py new file mode 100644 index 0000000..78a5693 --- /dev/null +++ b/tests/migrations/conftest.py @@ -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:///") diff --git a/tests/test_migrations.py b/tests/migrations/test_migrations.py similarity index 100% rename from tests/test_migrations.py rename to tests/migrations/test_migrations.py