Skip to content

Commit 415ee0a

Browse files
committed
update spacing on expected outcome
1 parent 91e7b6d commit 415ee0a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/python_testing/test_plan_table_generator.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,18 @@ def main(filename, classname, test):
4141
test_instance = test_class(config)
4242
steps = test_instance.get_test_steps(test)
4343
indent = 6
44+
header_num = f'{"**#**":<{indent}}'
45+
header_num_step = f'|{header_num} |*TestStep* '
4446
s = ('[cols="5%,45%,45%"]\n'
4547
'|===\n'
46-
'|**#** |*Test Step*|*Expected Outcome*\n')
48+
f'{header_num_step}|*Expected Outcome*\n')
4749
for step in steps:
48-
# add 2 to indent for a| and | at start
49-
s += f'|{step.test_plan_number:<{indent}}a|{indent_multiline(step.description, indent+3)}\n'
50-
padding = (indent + 1) * ' '
51-
s += f'{padding}a|{indent_multiline(step.expectation, indent+3)}\n\n'
50+
step_num = f'|{step.test_plan_number:<{indent}}a|'
51+
s += f'{step_num}{indent_multiline(step.description, len(step_num))}\n'
52+
53+
padding = (len(header_num_step) - 1) * ' '
54+
# add 2 to indent for a| at start
55+
s += f'{padding}a|{indent_multiline(step.expectation, len(padding)+2)}\n\n'
5256
s += '|===\n'
5357

5458
print(s)

0 commit comments

Comments
 (0)