otp.TmpFile#
- class TmpFile(suffix='', name='', clean_up=True)#
Bases:
onetick.py.utils.temp.File
,os.PathLike
Class to create a temporary file. By default, this file will be deleted automatically after all references to it are gone. Base path where temporary files are created could be set using the
ONE_TICK_TMP_DIR
. By default they are created under thetempfile.gettempdir()
folder.- Parameters
See also
The testing framework has a
--keep-generated
flag that controls clean up for all related instances Plugin features