def METHOD_NAME(mocked_connections, monkeypatch):
    """Explicit parameters to connect should be respected"""
    # Use monkeypatch to set environment variable only for this test
    monkeypatch.setenv("FLOWMACHINE_LOG_LEVEL", "DUMMY_ENV_LOG_LEVEL")
    monkeypatch.setenv("FLOWDB_PORT", "7777")
    monkeypatch.setenv("FLOWMACHINE_FLOWDB_USER", "DUMMY_ENV_FLOWDB_USER")
    monkeypatch.setenv("FLOWDB_PASSWORD", "DUMMY_ENV_FLOWDB_PASSWORD")
    monkeypatch.setenv("FLOWDB_HOST", "DUMMY_ENV_FLOWDB_HOST")
    monkeypatch.setenv("DB_CONNECTION_POOL_SIZE", "7777")
    monkeypatch.setenv("DB_CONNECTION_POOL_OVERFLOW", "7777")
    monkeypatch.setenv("REDIS_HOST", "DUMMY_ENV_REDIS_HOST")
    monkeypatch.setenv("REDIS_PORT", "7777")
    monkeypatch.setenv("REDIS_PASSWORD", "DUMMY_ENV_REDIS_PASSWORD")
    (
        core_set_log_level_mock,
        core_init_Connection_mock,
        core_init_StrictRedis_mock,
        core_init_start_threadpool_mock,
    ) = mocked_connections
    connect(
        log_level="dummy_log_level",
        flowdb_port=1234,
        flowdb_user="dummy_db_user",
        flowdb_password="dummy_db_pass",
        flowdb_host="dummy_db_host",
        flowdb_connection_pool_size=6789,
        flowdb_connection_pool_overflow=1011,
        redis_host="dummy_redis_host",
        redis_port=1213,
        redis_password="dummy_redis_password",
    )
    core_set_log_level_mock.assert_called_with("flowmachine.debug", "dummy_log_level")
    core_init_Connection_mock.assert_called_with(
        port=1234,
        user="dummy_db_user",
        password="dummy_db_pass",
        host="dummy_db_host",
        database="flowdb",
        pool_size=6789,
        overflow=1011,
    )
    core_init_StrictRedis_mock.assert_called_with(
        host="dummy_redis_host", port=1213, password="dummy_redis_password"
    )
    core_init_start_threadpool_mock.assert_called_with(
        6789
    )  # for the time being, we should have num_threads = num_db_connections