def wmanager(request, wayland_session):
    """
    This replicates the `manager` fixture except that the Wayland backend is hard-coded.
    We cannot parametrize the `backend_name` fixture module-wide because it gets
    parametrized by `pytest_generate_tests` in test/conftest.py and only one of these
    parametrize calls can be used.
    """
    config = getattr(request, "param", BareConfig)
    backend = WaylandBackend(wayland_session)

    with TestManager(backend, request.config.getoption("--debuglog")) as manager:
        manager.start(config)
        yield manager

    This replicates the `manager` fixture except that the Wayland backend is hard-coded.
    We cannot parametrize the `backend_name` fixture module-wide because it gets
    parametrized by `pytest_generate_tests` in test/conftest.py and only one of these
    parametrize calls can be used.
    
test/backend/wayland/conftest.py