New paste Repaste Download
fixturedef = <FixtureDef argname='docker_services' scope='session' baseid=''>, request = <SubRequest 'docker_services' for <Function test_services>>
    @pytest.hookimpl(wrapper=True)
    def pytest_fixture_setup(fixturedef: FixtureDef, request) -> object | None:
        asyncio_mode = _get_asyncio_mode(request.config)
        if not _is_asyncio_fixture_function(fixturedef.func):
            if asyncio_mode == Mode.STRICT:
                # Ignore async fixtures without explicit asyncio mark in strict mode
                # This applies to pytest_trio fixtures, for example
>               return (yield)
                        ^^^^^
.venv/lib/python3.12/site-packages/pytest_asyncio/plugin.py:728:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.12/site-packages/pytest_docker/plugin.py:238: in docker_services
    with get_docker_services(
/opt/homebrew/Cellar/python@3.12/3.12.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.venv/lib/python3.12/site-packages/pytest_docker/plugin.py:212: in get_docker_services
    docker_compose.execute(command)
.venv/lib/python3.12/site-packages/pytest_docker/plugin.py:140: in execute
    return execute(command, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
command = 'docker compose -f "./app/tests/docker_integration_tests/compose.yaml" -p "pytest15894" up --build --wait', success_codes = (0,), ignore_stderr = False
    def execute(command: str, success_codes: Iterable[int] = (0,), ignore_stderr: bool = False) -> Union[bytes, Any]:
        """Run a shell command."""
        try:
            stderr_pipe = subprocess.DEVNULL if ignore_stderr else subprocess.STDOUT
            output = subprocess.check_output(command, stderr=stderr_pipe, shell=True)
            status = 0
        except subprocess.CalledProcessError as error:
            output = error.output or b""
            status = error.returncode
            command = error.cmd
    
        if status not in success_codes:
>           raise Exception(
                'Command {} returned {}: """{}""".'.format(command, status, output.decode("utf-8"))
            )
E           Exception: Command docker compose -f "./app/tests/docker_integration_tests/compose.yaml" -p "pytest15894" up --build --wait returned 1: """ Network pytest15894_default Creating
E            Network pytest15894_default Created
E            Container pytest15894-msp-1 Creating
E            Container pytest15894-cpo-1 Creating
E            Container pytest15894-mongodb-1 Creating
E            Container pytest15894-mongodb-1 Created
E            Container pytest15894-msp-1 Created
E            Container pytest15894-cpo-1 Created
E            Container pytest15894-cpo-1 Starting
E            Container pytest15894-msp-1 Starting
E            Container pytest15894-mongodb-1 Starting
E            Container pytest15894-mongodb-1 Started
E            Container pytest15894-msp-1 Started
E            Container pytest15894-cpo-1 Started
E            Container pytest15894-msp-1 Waiting
E            Container pytest15894-mongodb-1 Waiting
E            Container pytest15894-cpo-1 Waiting
E            Container pytest15894-mongodb-1 Healthy
E           container pytest15894-cpo-1 exited (1)
E           """.
.venv/lib/python3.12/site-packages/pytest_docker/plugin.py:37: Exception
Filename: None. Size: 4kb. View raw, , hex, or download this file.

This paste expires on 2026-02-10 09:24:01.482180+00:00. Pasted through deprecated-web.