load authors by followers fix
Some checks failed
Deploy on push / deploy (push) Failing after 3m33s

This commit is contained in:
2025-08-26 14:12:49 +03:00
parent 2a6fcc3f45
commit 90aece7a60
11 changed files with 253 additions and 194 deletions

View File

@@ -81,23 +81,8 @@ ensure_all_tables_exist()
def pytest_configure(config):
"""Pytest configuration hook - runs before any tests"""
# Ensure Redis is patched before any tests run
try:
import fakeredis.aioredis
# Create a fake Redis instance
fake_redis = fakeredis.aioredis.FakeRedis()
# Patch Redis at module level
import storage.redis
# Mock the global redis instance
storage.redis.redis = fake_redis
print("✅ Redis patched with fakeredis in pytest_configure")
except ImportError:
print("❌ fakeredis not available in pytest_configure")
# Redis is already patched at module level, no need to do it again
print("✅ Redis already patched at module level")
def force_create_all_tables(engine):