@pytest.fixture(scope='session')
def post_db_setup(translations_directory, django_db_setup, django_db_blocker, tests_use_db, tests_use_vfolders, request):
 if tests_use_db:
  with django_db_blocker.unblock():
   PootleTestEnv().setup(vfolders=tests_use_vfolders)

@ pytest . fixture ( scope = 'session' ) def post_db_setup ( translations_directory , django_db_setup , django_db_blocker , tests_use_db , tests_use_vfolders , request ) : if tests_use_db : with django_db_blocker . unblock ( ) : PootleTestEnv ( ) . setup ( vfolders = tests_use_vfolders )
sets up the site db for the test session .