@pytest.fixture
def project_store_resources0(project0, subdir0):
 from pootle_project.models import ProjectResource
 from pootle_store.models import Store
 store = subdir0.child_stores.live().first()
 resources = Store.objects.live().filter(name=store.name, parent__name=subdir0.name, translation_project__project=project0)
 return ProjectResource(resources, ('/projects/%s/%s/%s' % (project0.code, subdir0.name, store.name)))

@ pytest . fixture def project_store_resources0 ( project0 , subdir0 ) : from pootle_project . models import ProjectResource from pootle_store . models import Store store = subdir0 . child_stores . live ( ) . first ( ) resources = Store . objects . live ( ) . filter ( name = store . name , parent__name = subdir0 . name , translation_project__project = project0 ) return ProjectResource ( resources , ( '/projects/%s/%s/%s' % ( project0 . code , subdir0 . name , store . name ) ) )
returns a projectresource object for a store .