oioioi.testrun.handlers

Module Contents

Functions

make_test(env, submission, **kwargs)

Creates a testcase test from the user input and converts it to

grade_submission(env, **kwargs)

Grades submission: fills fields used by common postprocessors.

make_report(env, **kwargs)

Builds entities for testrun reports in a database.

delete_output(env, **kwargs)

oioioi.testrun.handlers.make_test(env, submission, **kwargs)[source]

Creates a testcase test from the user input and converts it to evaluation environment.

Used environ keys:
  • submission_id

  • problem_id

Produced environ keys:
  • tests: a dictionary mapping test names to test envs

oioioi.testrun.handlers.grade_submission(env, **kwargs)[source]

Grades submission: fills fields used by common postprocessors.

This Handler gets submission status from test test result.

Used environ keys:
  • test_results

Produced environ keys:
  • status

  • score

  • max_score

oioioi.testrun.handlers.make_report(env, **kwargs)[source]

Builds entities for testrun reports in a database.

Used environ keys:
  • tests

  • test_results

  • status

  • score

  • compilation_result

  • compilation_message

Produced environ keys:
oioioi.testrun.handlers.delete_output(env, **kwargs)[source]