diff options
Diffstat (limited to 'backend/routes/forms/unittesting.py')
-rw-r--r-- | backend/routes/forms/unittesting.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/routes/forms/unittesting.py b/backend/routes/forms/unittesting.py index 13fa639..2bfeaa9 100644 --- a/backend/routes/forms/unittesting.py +++ b/backend/routes/forms/unittesting.py @@ -40,7 +40,8 @@ def _make_unit_code(units: dict[str, str]) -> str: if unit_name == "setUp": result += "\ndef setUp(self):" else: - result += f"\nasync def {unit_name.removeprefix('#')}(self):" + name = f"test_{unit_name.removeprefix('#').removeprefix('test_')}" + result += f"\nasync def {name}(self):" # Unite code result += f"\n{indent(unit_code, ' ')}" |