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 03e6f64 commit c6b26cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_alembic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# This file is part of Invenio.
# Copyright (C) 2021 TU Wien.
# Copyright (C) 2021 Northwestern University.
# 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 Down Expand Up @@ -46,7 +47,7 @@ def test_alembic(app, database):
raise pytest.skip("Upgrades are not supported on SQLite.")

# 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 "vocabularies_metadata" in tables
assert "vocabularies_types" in tables
assert "vocabularies_schemes" in tables
Expand Down

0 comments on commit c6b26cc

Please sign in to comment.