diff options
author | 2021-02-25 18:20:46 +0100 | |
---|---|---|
committer | 2021-02-25 18:20:46 +0100 | |
commit | a1a14d8a82bb7d2a9021bca5a2b8fcb3fbc4406a (patch) | |
tree | de9515886d9eba66ca4c5c73ecd74a6a3f3bf72d | |
parent | Remove unused import (diff) |
Properly hadnle hidden tests starting with test_
-rw-r--r-- | backend/routes/forms/unittesting.py | 2 |
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("#") } |