mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
server: update backend tests results (rpc does not work with chords)
This commit is contained in:
@@ -31,13 +31,5 @@ def upgrade() -> None:
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column(
|
||||
"transcript",
|
||||
sa.Column(
|
||||
"share_mode",
|
||||
sa.VARCHAR(),
|
||||
server_default=sa.text("'private'"),
|
||||
nullable=False,
|
||||
),
|
||||
)
|
||||
op.drop_column("transcript", "audio_location")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
@@ -133,4 +133,10 @@ def celery_enable_logging():
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def celery_config():
|
||||
return {"broker_url": "memory://", "result_backend": "rpc"}
|
||||
import tempfile
|
||||
|
||||
with tempfile.NamedTemporaryFile() as fd:
|
||||
yield {
|
||||
"broker_url": "memory://",
|
||||
"result_backend": "db+sqlite://" + fd.name,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user