docstr: Tests directory paths are removed
docstr_tok: ["Tests","directory","paths","are","removed"]
code: def test_sanitize_path_array_directories(
      self, mock_glob, mock_isfile
  ):
      """
      Tests directory paths are removed
      """
      mock_isfile.side_effect = [False, True, False]
      mock_glob.glob = lambda x: [x]
      self.assertListEqual(
          sanitize_path_array(["dir1", "file", "dir2"]), ["file"]
      )
  
imports: import unittest
  from unittest.mock import MagicMock, mock_open, patch
  from artifact_repository import *
label_desc: Use image node_id 38 for calling the TestArtifactRepositoryTool obj's underlying member method code with example usage: obj.test_sanitize_path_array_directories(mock_glob, mock_isfile) without return types