Skip to content

Commit b764372

Browse files
committed
[test/validation_int] Add buffer read method
1 parent bb30904 commit b764372

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test_validation_integration.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ def tearDown(self):
2626
# Reset stdout
2727
sys.stdout = sys.__stdout__
2828

29+
def _get_captured_output(self):
30+
out = [txt.strip() for txt in self.capture.getvalue().split('\n') if txt]
31+
32+
# Buffer reset
33+
self.capture.seek(0)
34+
self.capture.truncate()
35+
36+
return out
37+

0 commit comments

Comments
 (0)