Skip to content

Commit

Permalink
Test theory, that the coupling of redis to sql is what causes unitte…
Browse files Browse the repository at this point in the history
…st to become deadlocked when trying to drop all tables.
  • Loading branch information
pbugni committed Mar 5, 2024
1 parent c34250e commit 4414dfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion portal/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
from flask_sqlalchemy import SQLAlchemy
from flask_sqlalchemy_caching import CachingQuery

db = SQLAlchemy(query_class=CachingQuery)
# Test theory, that the coupling of redis to sql is what causes
# unittests to become deadlocked when trying to drop all tables
#db = SQLAlchemy(query_class=CachingQuery)
db = SQLAlchemy()

0 comments on commit 4414dfa

Please sign in to comment.