@pytest.fixture
def topic_moderator(forum, moderator_user):
 topic = Topic(title='Test Topic Moderator')
 post = Post(content='Test Content Moderator')
 return topic.save(forum=forum, user=moderator_user, post=post)

@ pytest . fixture def topic_moderator ( forum , moderator_user ) : topic = Topic ( title = 'Test Topic Moderator' ) post = Post ( content = 'Test Content Moderator' ) return topic . save ( forum = forum , user = moderator_user , post = post )
a topic by a user with moderator permissions .