from preference_center.profile.handlers import GetSettingsHandler, GetSettingsRequest from tests.unit.faker import FakerTyped class TestGetSettingsHandler: def test_get_settings(self, handler: GetSettingsHandler, fake: FakerTyped) -> None: country_code = fake.country_code(date_of_birth_restricted=False) result = handler.handle( GetSettingsRequest( ip_country=country_code, ) ) assert result == { "is_date_of_birth_allowed": True, "privacy_links": handler.legal_info_service.get_privacy_links(country_code), "legal_entity": handler.legal_info_service.get_legal_entity(country_code), }