File size: 480 Bytes
1d62d5e
 
 
 
 
 
 
67df99f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

# Run Celery tasks synchronously and use an in-memory result backend for
# tests — must be set before app.worker.celery_app is imported anywhere.
os.environ.setdefault("CELERY_TASK_ALWAYS_EAGER", "true")
os.environ.setdefault("CELERY_RESULT_BACKEND", "cache+memory://")

import pytest
from app.api.routes import _clear_feedback_store


@pytest.fixture(autouse=True)
def clear_feedback_store() -> None:
    _clear_feedback_store()
    yield
    _clear_feedback_store()