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 b4cf20e commit 74a4854
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
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
# Copyright (C) 2024 Graz University of Technology.
#
# Invenio-Github 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 @@ -21,7 +22,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 "github_repositories" in tables
assert "github_releases" in tables

Expand Down

0 comments on commit 74a4854

Please sign in to comment.