fix error in gitignore

This commit is contained in:
2026-09-24 12:32:59 +03:30
commit 86c117ee2a
165 changed files with 5963 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from django.test import TestCase
from apps.core.settings_service import SettingsService
class SettingsServiceTests(TestCase):
def test_get_returns_schema_default(self):
service = SettingsService()
self.assertEqual(service.get("sms.provider"), "mock")
self.assertIs(service.get("odoo.enabled"), False)
def test_set_and_get(self):
service = SettingsService()
service.set("odoo.url", "https://odoo.example.com")
self.assertEqual(service.get("odoo.url"), "https://odoo.example.com")
def test_secrets_are_masked(self):
service = SettingsService()
service.set("odoo.api_key", "super-secret")
values = service.all_values()
self.assertEqual(values["odoo.api_key"], "••••••")