cic-internal-integration/apps/cic-ussd/tests/helpers/tmp_files.py

15 lines
315 B
Python
Raw Normal View History

2021-02-06 16:13:47 +01:00
# 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()