def mktestdir(tmpdir_factory):
    """Creates temporary directory for text files during testing.

    :param tmpdir_factory:
    :returns: directory fixture
    """
    testdir = tmpdir_factory.mktemp('testing')
    return testdir