summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest_task.py3
1 files changed, 1 insertions, 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))