cic-internal-integration/apps/cic-ussd/tests/helpers/tmp_files.py
2021-02-05 20:32:25 -08:00

15 lines
315 B
Python

# standard imports
import logging
import tempfile
from typing import Any, Tuple
logg = logging.getLogger()
def create_tmp_file() -> Tuple[int, Any]:
"""This helper function creates a unique temporary directory.
:return: path to a temporary directory
:rtype: str
"""
return tempfile.mkstemp()