From 38c2d76839ba65fa2005123b1d2184dc7ce66955 Mon Sep 17 00:00:00 2001 From: Kelly Lockhart <2926089+kelockhart@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:26:10 -0400 Subject: [PATCH] fixes to make unittests work --- myadsp/tasks.py | 1 + myadsp/templates/email.html | 17 ----------------- myadsp/templates/one_col.html | 21 ++++++++++++++++++++- myadsp/templates/two_col.html | 23 +++++++++++++++++++++-- myadsp/tests/test_utils.py | 28 +++++++++++++++++++--------- 5 files changed, 61 insertions(+), 29 deletions(-) diff --git a/myadsp/tasks.py b/myadsp/tasks.py index f8b98eb..46fb4e1 100644 --- a/myadsp/tasks.py +++ b/myadsp/tasks.py @@ -139,6 +139,7 @@ def task_process_myads(message): all_audio_out = {b["title"]: b["file"] for b in audio_file_dict} else: audio_bib = [] + all_audio_out = {} for s in setup: if s['frequency'] == message['frequency']: # only return 5 results, unless it's the daily arXiv posting, then return max diff --git a/myadsp/templates/email.html b/myadsp/templates/email.html index eab0f99..1daefef 100644 --- a/myadsp/templates/email.html +++ b/myadsp/templates/email.html @@ -65,23 +65,6 @@
|