aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-02-25 18:20:46 +0100
committerGravatar Matteo Bertucci <[email protected]>2021-02-25 18:20:46 +0100
commita1a14d8a82bb7d2a9021bca5a2b8fcb3fbc4406a (patch)
treede9515886d9eba66ca4c5c73ecd74a6a3f3bf72d /backend
parentRemove unused import (diff)
Properly hadnle hidden tests starting with test_
Diffstat (limited to 'backend')
-rw-r--r--backend/routes/forms/unittesting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/forms/unittesting.py b/backend/routes/forms/unittesting.py
index 4b362e1..175701f 100644
--- a/backend/routes/forms/unittesting.py
+++ b/backend/routes/forms/unittesting.py
@@ -72,7 +72,7 @@ async def execute_unittest(form_response: FormResponse, form: Form) -> list[Unit
# Tests starting with an hashtag should have censored names.
hidden_test_counter = count(1)
hidden_tests = {
- test.lstrip("#"): next(hidden_test_counter)
+ test.lstrip("#").lstrip("test_"): next(hidden_test_counter)
for test in question.data["unittests"].keys()
if test.startswith("#")
}