Пример #1
0
def set_up(test_dict):
    """Sets up the testing environment."""
    print "Begining test of `the_decider`..."
    print "\n        `the_decider.py`"
    print "_" * 79
    reset_system.delete_dirs_no_print(test_dict["generated_dirs"])
    return None
Пример #2
0
def set_up(test_dict):
    """Sets up the testing environment."""    
    print "Begining test of processing raw notebook images..."
    print "\n        `process_images.py`"
    print "_"*79
    folderpath = resolve_path(__file__, "../../scripts")
    folderpath += "/null" # Necessary for the resolve_path fnc
    test_image_path = resolve_path(folderpath, test_dict["test_image_path"])
    if not os.path.exists(test_image_path):
        sys.exit("Testing image does not exist!")
    reset_system.delete_dirs_no_print(test_dict["generated_dirs"])
    return None
Пример #3
0
def tear_down(test_dict):
    """Tears down the testing environment."""
    print "\nEnding test of image processing...\n"
    reset_system.delete_dirs_no_print(test_dict["generated_dirs"])
    print "_"*79    
    return None