diff --git a/tests/behat/test_combinator_grader.feature b/tests/behat/test_combinator_grader.feature index 5c6245a9..8f33af78 100644 --- a/tests/behat/test_combinator_grader.feature +++ b/tests/behat/test_combinator_grader.feature @@ -29,26 +29,26 @@ Feature: test_combinator_grader And I set the field "id_useace" to "0" And I set the field "id_uiplugin" to "None" And I set the field "id_template" to: - """ - import subprocess, json, sys - {{ STUDENT_ANSWER | e('py') }} - tests = json.loads('''{{ TESTCASES | json_encode | e('py') }}''') - test_results = [['Test', 'Expected', 'Got', 'iscorrect']] - num_right = 0 - for test in tests: - code = test['testcode'] - expected = int(test['expected']) - got = eval(code) - test_results.append([code, expected, got, expected == got]) - if expected == got: - num_right += 1 - print(json.dumps({ - 'testresults': test_results, - 'fraction': num_right / len(tests), - 'prologuehtml': '