Example #1
0
def dd_environment():
    with docker_run(
        COMPOSE_FILE,
        conditions=[
            CheckDockerLogs(COMPOSE_FILE, ['service ready: soon there will be cake!']),
            WaitFor(init_db),
        ],
    ):
        yield INSTANCE
Example #2
0
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