Skip to content

I can start a TestProcess("docker-compose", "up") but how to stop it? #3

@alanwilter

Description

@alanwilter
@pytest.fixture(scope="session")
def app_server():
    with TestProcess("docker-compose", "up") as app_server:
        wait_for_strings(app_server.read, 60, "Booting worker")
        print(app_server.read())
        yield app_server
        print("\n>>>>Teardown app_service")

This is doing fine, but the teardown is not happening (docker ps shows my apps still running)

I added this line app_server.close("docker-compose stop") in a desperate guess, for no avail.

Would you have a suggestion on how act here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions