import os from os.path import join import sys import shutil import threading from queue import Queue import subprocess import zmq import pynealScanner_helper_tools as helper_tools # get dictionary with relevant paths for tests within this module paths = helper_tools.get_pyneal_scanner_test_paths() for path in [paths['pynealDir'], paths['pynealScannerDir']]: if path not in sys.path: sys.path.insert(0, path) import pyneal_scanner.utils.Philips_utils as Philips_utils import pyneal_scanner.utils.general_utils as general_utils ### Tests for classes/functions within the Philips_utils.py module class Test_Philips_utils(): def test_Philips_DirStructure(self): """ test Philips_utils.Philips_DirStucture """ # update config file to match local paths configFile = join(paths['Philips_dir'], 'scannerConfig.yaml') helper_tools.replace_scannerConfig_sessionDir(configFile, paths['Philips_funcDir'])
import os from os.path import join import sys import shutil import threading from queue import Queue import subprocess import zmq import pynealScanner_helper_tools as helper_tools # get dictionary with relevant paths for tests within this module paths = helper_tools.get_pyneal_scanner_test_paths() for path in [paths['pynealDir'], paths['pynealScannerDir']]: if path not in sys.path: sys.path.insert(0, path) import pyneal_scanner.utils.Philips_utils as Philips_utils import pyneal_scanner.utils.general_utils as general_utils ### Tests for classes/functions within the Philips_utils.py module class Test_Philips_utils(): def test_Philips_DirStructure(self): """ test Philips_utils.Philips_DirStucture """ # update config file to match local paths configFile = join(paths['Philips_dir'], 'scannerConfig.yaml') helper_tools.replace_scannerConfig_baseDir(configFile, paths['Philips_funcDir']) # create instance of ScannerSettings class from general_utils scannerSettings = general_utils.ScannerSettings(paths['Philips_dir'])