Интегрирован wesp в сайт
CI / quality (push) Canceled after 0s

This commit is contained in:
влад
2026-07-17 12:57:18 +03:00
parent 5dfa06ddbe
commit 355c0ef9f1
883 changed files with 194576 additions and 177 deletions
+14
View File
@@ -30,3 +30,17 @@ def test_seed_ensures_ops_is_not_superuser():
refreshed = get_user_by_email("ops@compton.example")
assert refreshed is not None
assert refreshed.is_superuser is False
def test_seed_ensures_demo_enterprise():
run_seed(include_demo_pages=False)
from app.modules.sync.repository import get_enterprise_by_slug
ent = get_enterprise_by_slug("demo-farm")
assert ent is not None
admin = get_user_by_email("admin@compton.example")
assert admin is not None
from app.modules.sync import repository as sync_repo
assert sync_repo.get_member(admin.id, ent.id) is not None