Add --tail flag as option on logs.
Closes #265 Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
This commit is contained in:
parent
d9b4286f91
commit
9b36dc5c54
6 changed files with 33 additions and 9 deletions
|
|
@ -47,7 +47,7 @@ class TestLogPrinter(object):
|
|||
# Call count is 2 lines + "container exited line"
|
||||
assert output_stream.flush.call_count == 3
|
||||
|
||||
def test_single_container_without_follow(self, output_stream, mock_container):
|
||||
def test_single_container_without_stream(self, output_stream, mock_container):
|
||||
LogPrinter([mock_container], output=output_stream, follow=False).run()
|
||||
|
||||
output = output_stream.getvalue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue