@pytest.fixture
def tp1(language1, project1):
 from pootle_translationproject.models import TranslationProject
 return TranslationProject.objects.get(language=language1, project=project1)

@ pytest . fixture def tp1 ( language1 , project1 ) : from pootle_translationproject . models import TranslationProject return TranslationProject . objects . get ( language = language1 , project = project1 )
returns the tp created by language1 and project1 fixtures .