@pytest.fixture
def store_po(tp0):
 from pootle_translationproject.models import TranslationProject
 tp = TranslationProject.objects.get(project__code='project0', language__code='language0')
 store = StoreDBFactory(parent=tp.directory, translation_project=tp, name='test_store.po')
 return store

@ pytest . fixture def store_po ( tp0 ) : from pootle_translationproject . models import TranslationProject tp = TranslationProject . objects . get ( project__code = 'project0' , language__code = 'language0' ) store = StoreDBFactory ( parent = tp . directory , translation_project = tp , name = 'test_store.po' ) return store
an empty store in the /language0/project0 tp .