Mechanic's work place
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
VPN SaaS Dev
2026-05-16 10:04:56 +09:00
parent fec9635079
commit 83ad880b9d
39 changed files with 2951 additions and 74 deletions

View File

@@ -15,6 +15,7 @@ from app.db.base import Base
from app.db.session import get_session
from app.main import app
from app.models import car, expense, gamification, push, user # noqa: F401
from app.services.rate_limit import reset_rate_limit_state
TEST_BOT_TOKEN = "123456:test-token"
TEST_INTERNAL_TOKEN = "internal-test-token"
@@ -34,6 +35,7 @@ def make_init_data(telegram_id: int, first_name: str = "Test") -> str:
@pytest.fixture(autouse=True)
def configure_settings() -> None:
reset_rate_limit_state()
settings.bot_token = TEST_BOT_TOKEN
settings.internal_api_token = TEST_INTERNAL_TOKEN
settings.app_env = "test"