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

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