def test_process_images(): """Tests the image processing component.""" test_dict = return_testing_dictionary() set_up(test_dict) try: process_images.in_summary(test_dict) check_meta_existence(test_dict) check_processed_image(test_dict) finally: tear_down(test_dict) return None
def test_the_decider(): """Tests `the_decider` component.""" test_dict = return_testing_dictionary() set_up(test_dict) test_dict["meta_path"] = test_dict["test_known_alt"] try: how_many, images_per = the_decider.the_decider(1, test_dict) validate_results(how_many, images_per) finally: tear_down(test_dict) return None