Skip to content

Commit

Permalink
Update UnitTestsGenerator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MS-elug authored Jun 6, 2024
1 parent 840acdc commit 5f14f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/UnitTestsGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class <className>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.")
Expand Down

0 comments on commit 5f14f09

Please sign in to comment.