ci-testing
Some checks failed
Deploy on push / deploy (push) Failing after 1m11s

This commit is contained in:
2025-08-17 11:09:29 +03:00
parent 5876995838
commit 4b88a8c449
19 changed files with 2802 additions and 2559 deletions

View File

@@ -52,10 +52,11 @@ class TestCommunityWithoutCreator:
assert community_without_creator.name == "Community Without Creator"
assert community_without_creator.slug == "community-without-creator"
def test_community_creation_with_creator(self, db_session, community_with_creator):
def test_community_creation_with_creator(self, db_session, community_with_creator, test_users):
"""Тест создания сообщества с создателем"""
assert community_with_creator.created_by is not None
assert community_with_creator.created_by == 1 # ID первого пользователя
# Проверяем что создатель назначен первому пользователю
assert community_with_creator.created_by == test_users[0].id
def test_community_creator_assignment(self, db_session, community_without_creator, test_users):
"""Тест назначения создателя сообществу"""