Skip to content

Commit 24b6369

Browse files
committed
Moved print statement of which test is running to before the test actually runs
1 parent d7e71da commit 24b6369

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wpiformat/test/tasktest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def run(self, output_type):
7979

8080
for i in range(len(self.inputs)):
8181
if self.task.should_process_file(config_file, self.inputs[i][0]):
82+
print("Running test {}...".format(i))
83+
8284
if output_type == OutputType.FILE:
8385
output, file_changed, success = self.task.run_pipeline(
8486
config_file, self.inputs[i][0], self.inputs[i][1])
@@ -91,7 +93,6 @@ def run(self, output_type):
9193
output = sys.stdout.read()
9294
sys.stdout = saved_stdout
9395

94-
print("Running test {}...".format(i))
9596
assert output == self.outputs[i][0]
9697
assert file_changed == self.outputs[i][1]
9798
assert success == self.outputs[i][2]

0 commit comments

Comments
 (0)