old_contents: import pytest
  import os
  import unittest
  from pathlib import Path
  from devel.dataset import transform_file_structure
  
  
  @unittest.skipIf(os.environ.get("TRAVIS", False), "Skip on Travis-CI")
  def test_pilsen_pigs():
      input_dir = r'H:\biomedical\orig\pilsen_pigs_raw\transplantation'
      output_dir = Path(r"H:\biomedical\orig\pilsen_pigs")
      transform_file_structure.prepare_pilsen_pigs_dataset(input_dir, output_dir=output_dir, output_format=".mhd")
  
      assert (output_dir / "pilsen_pigs_Tx041D_Ven" / "PATIENT_DICOM" / "pilsen_pigs_Tx041D_Ven.mhd").exists()
      assert (output_dir / "pilsen_pigs_Tx041D_Ven" / "PATIENT_DICOM" / "pilsen_pigs_Tx041D_Ven.raw").exists()
  
new_contents: import pytest
  import os
  import unittest
  from pathlib import Path
  from devel.dataset import transform_file_structure
  
  
  @unittest.skipIf(os.environ.get("TRAVIS", False), "Skip on Travis-CI")
  def test_pilsen_pigs():
      # input_dir = r'H:\biomedical\orig\pilsen_pigs_raw\transplantation'
      # output_dir = Path(r"H:\biomedical\orig\pilsen_pigs")
      input_dir = Path(r'G:\.shortcut-targets-by-id\1Vq6QAiJ7cHDJUdgKXjUxx5iw7zk6MMPI\transplantation')
      output_dir = Path(r'G:\.shortcut-targets-by-id\1nz7i4Zssar8075yu6J5QpHdph6oi3uF8\pilsen_pigs')
      file_list1 = list(input_dir.glob('*_Ven*'))
      transform_file_structure.prepare_pilsen_pigs_dataset(input_dir, output_dir=output_dir, output_format=".mhd")
      file_list2 = list(input_dir.glob('*_Ven*'))
  
      # assert (output_dir / "pilsen_pigs_Tx041D_Ven" / "PATIENT_DICOM" / "pig_001.mhd").exists()
      # assert (output_dir / "pilsen_pigs_Tx041D_Ven" / "PATIENT_DICOM" / "pilsen_pigs_Tx041D_Ven.raw").exists()
  
      assert (len(file_list1) < len(file_list2))
subject: Update transform_file_structure_test.py