Files
han-app/codebase/services/bitrix-sync/tests/conftest.py
T

26 lines
852 B
Python

from __future__ import annotations
import pytest
from app.config import Settings
@pytest.fixture
def full_settings() -> Settings:
return Settings(
enabled=True,
mode="full",
database_url="postgresql+asyncpg://user:pass@db/han",
crm_rest_webhook_url="https://portal.example/rest/1/credential/",
contact_receiver_token="contact-token-value-32-characters",
alert_receiver_token="alert-token-value-32-characters---",
service_token="service-token-value-32-characters-",
portal_host="portal.example",
portal_member_id="member_12345678",
public_base_url="https://sync.example",
contact_user_id_field="UF_CRM_100",
contact_registered_field="UF_CRM_101",
contact_citizenship_field="UF_CRM_102",
webhook_allowed_cidrs="203.0.113.0/24",
)