server: update backend tests results (rpc does not work with chords)

This commit is contained in:
2023-11-16 14:45:40 +01:00
committed by Mathieu Virbel
parent 06b29d9bd4
commit 5ffa931822
2 changed files with 8 additions and 10 deletions

View File

@@ -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 ###

View File

@@ -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,
}