@pytest.fixture
def admin_group(db):
 return Group.objects.create(name='Admins', rules='*:*')

@ pytest . fixture def admin_group ( db ) : return Group . objects . create ( name = 'Admins' , rules = '*:*' )
create the admins group .