test/python_tests/conftest.py
author Volker Birk <vb@pep.foundation>
Wed, 10 Jan 2018 15:09:42 +0100
changeset 2367 bc21bd3fd514
parent 2353 88c29a4816bb
permissions -rw-r--r--
remove common, too
vb@2352
     1
# -*- coding: utf-8 -*-
vb@2352
     2
vb@2352
     3
# this file is under GNU General Public License 3.0
vb@2352
     4
# Copyleft 2017, p≡p foundation
vb@2352
     5
vb@2352
     6
vb@2352
     7
from setup_test import create_homes
vb@2352
     8
vb@2353
     9
vb@2352
    10
def pytest_runtest_setup(item):
vb@2367
    11
    try:
vb@2367
    12
        create_homes()
vb@2367
    13
    except FileExistsError: # if concurrent process is already creating things
vb@2367
    14
        pass