File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/pytest_docker_compose Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ def pytest_addoption(parser):
88
88
default = False , help = "Boolean to use a running set of containers "
89
89
"instead of calling 'docker-compose up'" )
90
90
91
- group .addoption ("--disable-logs-output" , action = "store_true" ,
92
- default = False , help = "Boolean to not print the logs of each container after tests" )
93
-
94
91
@pytest .fixture (scope = "session" )
95
92
def docker_project (self , request ):
96
93
"""
@@ -172,7 +169,7 @@ def scoped_containers_fixture(docker_project: Project, request):
172
169
container_getter = ContainerGetter (docker_project )
173
170
yield container_getter
174
171
175
- if not request .config .getoption ("--disable-logs-output " ):
172
+ if request .config .getoption ("--verbose " ):
176
173
for container in sorted (containers , key = lambda c : c .name ):
177
174
header = "Logs from {name}:" .format (name = container .name )
178
175
print (header , '\n ' , "=" * len (header ))
You can’t perform that action at this time.
0 commit comments