aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/forms/unittesting.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-02-24 13:53:08 +0100
committerGravatar Matteo Bertucci <[email protected]>2021-02-24 13:53:08 +0100
commitda6b581185e8bbe37e561a05827c8517824c7d2c (patch)
tree2b4f0591fc9b76b74eaa1afd17161758331777c1 /backend/routes/forms/unittesting.py
parentHook up unittesting in the submit protocol (diff)
Switch to 100 chars line length and get rid of the noqas
Diffstat (limited to 'backend/routes/forms/unittesting.py')
-rw-r--r--backend/routes/forms/unittesting.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/routes/forms/unittesting.py b/backend/routes/forms/unittesting.py
index 3e1d280..fe8320f 100644
--- a/backend/routes/forms/unittesting.py
+++ b/backend/routes/forms/unittesting.py
@@ -51,7 +51,8 @@ async def execute_unittest(form_response: FormResponse, form: Form) -> list[Unit
unit_code = _make_unit_code(question.data["unittests"])
user_code = _make_user_code(form_response.response[question.id])
- code = TEST_TEMPLATE.replace("### USER CODE", user_code).replace("### UNIT CODE", unit_code)
+ code = TEST_TEMPLATE.replace("### USER CODE", user_code)
+ code = code.replace("### UNIT CODE", unit_code)
# Make sure that the code is well formatted (we don't check for the user code)
try: