From a1a14d8a82bb7d2a9021bca5a2b8fcb3fbc4406a Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Thu, 25 Feb 2021 18:20:46 +0100 Subject: Properly hadnle hidden tests starting with test_ --- backend/routes/forms/unittesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("#") } -- cgit v1.2.3