@contextlib.contextmanager
def temporary_directory():
    temp_dir = tempfile.mkdtemp()
    try:
        yield temp_dir
    finally:
        shutil.rmtree(temp_dir)
This should not allow for required fields to be empty.
dataset/ETHPy150Open enthought/traits/traits/etsconfig/tests/test_etsconfig.py/temporary_directory--crossover with--dataset/ETHPy150Open bmun/huxley/huxley/api/tests/school/test_create_school.py/CreateSchoolTestCase.test_empty_fields