def dd_environment(): with docker_run( COMPOSE_FILE, conditions=[ CheckDockerLogs(COMPOSE_FILE, ['service ready: soon there will be cake!']), WaitFor(init_db), ], ): yield INSTANCE
def dd_environment(): with docker_run( COMPOSE_FILE, conditions=[ CheckEndpoints(['http://{}:{}'.format(HOST, PORT)]), CheckDockerLogs(COMPOSE_FILE, ['service ready: soon there will be cake!']), WaitFor(init_db), ], ): yield INSTANCE