@pytest.fixture(scope='session')
def pootle_content_type():
 from django.contrib.contenttypes.models import ContentType
 args = {'app_label': 'pootle_app', 'model': 'directory'}
 return ContentType.objects.get(**args)

@ pytest . fixture ( scope = 'session' ) def pootle_content_type ( ) : from django . contrib . contenttypes . models import ContentType args = { 'app_label' : 'pootle_app' , 'model' : 'directory' } return ContentType . objects . get ( ** args )
require the pootle contenttype .