From d58181db34390f66032ba24a8ee5fffa89231a19 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Thu, 18 Jul 2013 14:47:33 -0400 Subject: [PATCH] TST: Fix case where there is no existing risk answer key. The download checksum was not being correctly set when no file existed. Set the checksum to the latest value so that a download is triggered. --- tests/risk/answer_key.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/risk/answer_key.py b/tests/risk/answer_key.py index 7f3931ba..448b7f29 100644 --- a/tests/risk/answer_key.py +++ b/tests/risk/answer_key.py @@ -93,6 +93,8 @@ def ensure_latest_answer_key(): else: # Assume local copy that is being developed on answer_key_dl_checksum = None + else: + answer_key_dl_checksum = ANSWER_KEY_CHECKSUMS[-1] if answer_key_dl_checksum: res = requests.get(