This commit is contained in:
@@ -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):
|
||||
"""Тест назначения создателя сообществу"""
|
||||
|
||||
Reference in New Issue
Block a user