Skip to content

Commit

Permalink
comp: make compatible to flask-sqlalchemy>=3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 12, 2024
1 parent 3e5311a commit aeb5e6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_alembic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# This file is part of Invenio.
# Copyright (C) 2021 TU Wien.
# Copyright (C) 2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -10,8 +11,6 @@

import pytest
from invenio_db.utils import alembic_test_context, drop_alembic_version_table
from sqlalchemy_continuum import version_class
from sqlalchemy_utils.functions import get_class_by_table


@pytest.mark.skip(reason="Caused by mergepoint")
Expand All @@ -26,7 +25,7 @@ def test_alembic(base_app, database):
base_app.config["ALEMBIC_CONTEXT"] = alembic_test_context()

# Check that this package's SQLAlchemy models have been properly registered
tables = [x.name for x in db.get_tables_for_bind()]
tables = [x for x in db.metadata.tables]
assert "rdm_drafts_files" in tables
assert "rdm_drafts_metadata" in tables
assert "rdm_records_files" in tables
Expand Down

0 comments on commit aeb5e6f

Please sign in to comment.