@pytest.fixture
def forum_locked(category, default_settings):
 forum = Forum(title='Test Forum', category_id=category.id)
 forum.locked = True
 forum.save()
 return forum

@ pytest . fixture def forum_locked ( category , default_settings ) : forum = Forum ( title = 'Test Forum' , category_id = category . id ) forum . locked = True forum . save ( ) return forum
a single locked forum in a category .