@pytest.fixture
def member2():
 from django.contrib.auth import get_user_model
 return get_user_model().objects.get(username='member2')

@ pytest . fixture def member2 ( ) : from django . contrib . auth import get_user_model return get_user_model ( ) . objects . get ( username = 'member2' )
require a member2 user .