summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 15:25:02 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 20:15:30 +0200
commit624f8c317ae972153640ff96ab3ee1bb83829cf7 (patch)
tree7db79d04121e61b28993c9771211cc294f655509
parent2db0d813d4325e6ca45a12cb275d5cf765f76232 (diff)
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.
-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))