This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user