Skip to content

Commit

Permalink
Adjust tests to changes in tahrir-api
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
  • Loading branch information
abompard authored and renovate[bot] committed Jun 10, 2024
1 parent 24ff73a commit 0f727a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pytest
from fedora_messaging.config import conf
from tahrir_api import dbapi
from tahrir_api.utils import get_db_manager_from_uri

from fedbadges.cached import configure as configure_cache
from fedbadges.consumer import FedoraBadgesConsumer
Expand Down Expand Up @@ -55,7 +56,8 @@ def badges_db(tmp_path, notification_callback_mock):
autocommit=False,
notification_callback=notification_callback_mock,
)
db.db_mgr.sync()
db_mgr = get_db_manager_from_uri(database_uri)
db_mgr.sync()
yield db
db.session.rollback()

Expand Down

0 comments on commit 0f727a3

Please sign in to comment.