From 5f14f097187a44a7157be8c4dac21e5a3e846d3b Mon Sep 17 00:00:00 2001 From: Mathieu Seiler Date: Thu, 6 Jun 2024 19:05:36 +0200 Subject: [PATCH] Update UnitTestsGenerator.py --- services/UnitTestsGenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/UnitTestsGenerator.py b/services/UnitTestsGenerator.py index 22895ff..6674e3d 100644 --- a/services/UnitTestsGenerator.py +++ b/services/UnitTestsGenerator.py @@ -103,9 +103,9 @@ class Test {{ # in case an intermediate directory does not exist, create it. dir_name = os.path.dirname(test_class_path) os.makedirs(dir_name, exist_ok=True) - with open("./{}".format(test_class_path), 'w') as f: + with open(test_class_path, 'w') as f: written = f.write(enhanced_unit_class) - print("File written: {}, size: {}".format("./{}".format(test_class_path), written)) + print("File written: {}, size: {}".format(test_class_path, written)) f.close() else: print("No need to add unit test for the file.")