CI / Build and push docker image (push) Successful in 3m12s
The platform now hosts multiple card games, with scopone scientifico as the first one. Rename the brand wherever it is not a game rule: - move the Python package to server/src/tavolo and update imports - rename the Postgres database/user, OIDC issuer path, client id and Redis key prefixes to tavolo (clean break: existing pgdata volumes and live games are not migrated) - rename the Cargo package to tavolo-web and set the page title to Tavolo - update docs and the Docker image path to woggioni/tavolo The scopa game term (clearing the table) in the engine, state and web UI is intentionally left untouched.
17 lines
647 B
Python
17 lines
647 B
Python
"""Shared test fixtures.
|
|
|
|
Tests run against an in-memory sqlite database (overriding ``DATABASE_URL``)
|
|
so they need no running Postgres, and with ``REDIS_URL`` unset so sessions
|
|
and live games use their in-memory stores. The environment is set before
|
|
:mod:`tavolo.app` is imported by the test modules.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
os.environ.setdefault("DATABASE_URL", "sqlite://:memory:")
|
|
os.environ.setdefault("OIDC_ISSUER", "http://localhost:8180/tavolo")
|
|
os.environ.setdefault("OIDC_CLIENT_ID", "tavolo")
|
|
os.environ.setdefault("OIDC_REDIRECT_URI", "http://localhost:8080/auth/callback")
|
|
os.environ.pop("REDIS_URL", None)
|