"vscode:/vscode.git/clone" did not exist on "f5eac3d19b89991d2e2c88f50efeb0fe5cc69a45"
  • Alex Lin's avatar
    Replace get_tmp_dir() with tmpdir fixture in tests (#4280) · 98cb4ead
    Alex Lin authored
    
    
    * Replace in test_datasets*
    
    * Replace in test_image.py
    
    * Replace in test_transforms_tensor.py
    
    * Replace in test_internet.py and test_io.py
    
    * get_list_of_videos is util function still use get_tmp_dir
    
    * Fix get_list_of_videos siginiture
    
    * Add get_tmp_dir import
    
    * Modify test_datasets_video_utils.py for test to pass
    
    * Fix indentation
    
    * Replace get_tmp_dir in util functions in test_dataset_sampler.py
    
    * Replace get_tmp_dir in util functions in test_dataset_video_utils.py
    
    * Move get_tmp_dir() to datasets_utils.py and refactor
    
    * Fix pylint, indentation and imports
    
    * import shutil to common_util.py
    
    * Fix function signiture
    
    * Remove get_list_of_videos under context manager
    
    * Move get_list_of_videos to common_utils.py
    
    * Move get_tmp_dir() back to common_utils.py
    
    * Fix pylint and imports
    Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
    98cb4ead
test_image.py 17.4 KB