@pytest.fixture(params=['language0_project0', 'templates_project0', 'en_terminology'])
def import_tps(request):
 from pootle_translationproject.models import TranslationProject
 (language_code, project_code) = request.param.split('_')
 return TranslationProject.objects.get(language__code=language_code, project__code=project_code)

@ pytest . fixture ( params = [ 'language0_project0' , 'templates_project0' , 'en_terminology' ] ) def import_tps ( request ) : from pootle_translationproject . models import TranslationProject ( language_code , project_code ) = request . param . split ( '_' ) return TranslationProject . objects . get ( language__code = language_code , project__code = project_code )
list of required translation projects for import tests .