@pytest.fixture
def super_moderator_user(default_groups):
 user = User(username='test_super_mod', email='test_super@example.org', password='test', primary_group=default_groups[1], activated=True)
 user.save()
 return user

@ pytest . fixture def super_moderator_user ( default_groups ) : user = User ( username = 'test_super_mod' , email = 'test_super@example.org' , password = 'test' , primary_group = default_groups [ 1 ] , activated = True ) user . save ( ) return user
creates a super moderator user .