From 624f8c317ae972153640ff96ab3ee1bb83829cf7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 4 Sep 2019 15:25:02 +0200 Subject: test_task: Set empty token in task_params when using local tasks Also, no need to delete the token from task_params afterwards, since it is not used anymore. --- test_task.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_task.py b/test_task.py index b8d6e44..a074a13 100755 --- a/test_task.py +++ b/test_task.py @@ -236,9 +236,8 @@ if __name__ == '__main__': print('Running task... ', end='', flush=True) task_result = task(**public_params) print('checking task... ', end='', flush=True) - task_params['token'] = tokens[task_name] # hack to avoid changing task_check signature + task_params['token'] = tokens.get(task_name, '') # hack to avoid changing task_check signature score, hints = task_check(task_result, task_params) - del task_params['token'] print('done!') print('Score: {}'.format(score)) -- cgit v1.2.1