lovelysystems/lovely-pytest-docker

allowing to stop containers

chicco785 opened this issue · 2 comments

for running test would be also good to be able to stop containers, not only to start them

@dobe would this be relevant? happy to do a pr

dobe commented

@dobe would this be relevant? happy to do a pr

hi @chicco785 that would be nice! see the implementation of start

def start(self, *services):
"""Ensures that the given services are started via docker compose.
:param services: the names of the services as defined in compose file
"""
self._docker_compose.execute('up', '--build', '-d', *services)