def test_queue_once(): from dqparsetests import test_functions as tf test_functions = tf() import dqcodelists codelists = dqcodelists.generateCodelists() callback_fn = lambda body: dequeue_download(body, test_functions, codelists) queue.exhaust_queue(download_queue, callback_fn)
def run_test_queue(subprocess): from dqparsetests import test_functions as tf test_functions = tf() import dqcodelists codelists = dqcodelists.generateCodelists() for body in queue.handle_queue_generator(download_queue): dequeue_download(body, test_functions, codelists, subprocess)
def _test_one_package(filename, package_id, runtime_id): from dqparsetests import test_functions as tf test_functions = tf() import dqcodelists codelists = dqcodelists.generateCodelists() print "Package ID: %d" % package_id print "Runtime: %d" % runtime_id check_file(test_functions, codelists, filename, runtime_id, package_id)