def METHOD_NAME(mocked_connections, monkeypatch):
    """Env vars should be used over defaults in connect"""
    # Use monkeypatch to set environment variable only for this test
    monkeypatch.setenv("FLOWMACHINE_LOG_LEVEL", "DUMMY_ENV_LOG_LEVEL")
    monkeypatch.setenv("FLOWDB_PORT", "6969")
    monkeypatch.setenv("FLOWMACHINE_FLOWDB_USER", "DUMMY_ENV_FLOWDB_USER")
    monkeypatch.setenv("FLOWMACHINE_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", "2020")
    monkeypatch.setenv("REDIS_HOST", "DUMMY_ENV_REDIS_HOST")
    monkeypatch.setenv("REDIS_PORT", "5050")
    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()
    core_set_log_level_mock.assert_called_with(
        "flowmachine.debug", "DUMMY_ENV_LOG_LEVEL"
    )
    core_init_Connection_mock.assert_called_with(
        port=6969,
        user="DUMMY_ENV_FLOWDB_USER",
        password="DUMMY_ENV_FLOWDB_PASSWORD",
        host="DUMMY_ENV_FLOWDB_HOST",
        database="flowdb",
        pool_size=7777,
        overflow=2020,
    )
    core_init_StrictRedis_mock.assert_called_with(
        host="DUMMY_ENV_REDIS_HOST", port=5050, password="DUMMY_ENV_REDIS_PASSWORD"
    )
    core_init_start_threadpool_mock.assert_called_with(
        7777
    )  # for the time being, we should have num_threads = num_db_connections