original_docstring: Provide the docker services as a pytest fixture.
  
      The services will be stopped after all tests are run.
      
docstring: Provide the docker services as a pytest fixture.
  The services will be stopped after all tests are run.
docstring_tokens: Provide the docker services as a pytest fixture . The services will be stopped after all tests are run .
code: def postgresql_docker_services(request,
                                 pytestconfig,
                                 postgresql_docker_compose_files,
                                 docker_ip):
      """Provide the docker services as a pytest fixture.
  
      The services will be stopped after all tests are run.
      """
      keep_alive = request.config.getoption("--keepalive", False)
      project_name = "pytest{}".format(str(pytestconfig.rootdir))
      services = PostgreSqlServices(postgresql_docker_compose_files,
                                    docker_ip,
                                    project_name)
      yield services
      if not keep_alive:
          services.shutdown()
code_tokens: def postgresql_docker_services ( request , pytestconfig , postgresql_docker_compose_files , docker_ip ) : keep_alive = request . config . getoption ( "--keepalive" , False ) project_name = "pytest{}" . format ( str ( pytestconfig . rootdir ) ) services = PostgreSqlServices ( postgresql_docker_compose_files , docker_ip , project_name ) yield services if not keep_alive : services . shutdown ( )
short_docstring: Provide the docker services as a pytest fixture.
short_docstring_tokens: Provide the docker services as a pytest fixture .
comment: """Provide the docker services as a pytest fixture.
  
      The services will be stopped after all tests are run.
      """