code: def test_should_return_conf_max_if_req_max_above_conf(self, session):
      connection_models = self._create_connections(200)
      session.add_all(connection_models)
      session.commit()
  
      response = self.client.get(
          "/api/v1/connections?limit=180",
          environ_overrides={"REMOTE_USER": "test"},
      )
      assert response.status_code == 200
      assert len(response.json["connections"]) == 150
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  import pytest
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.models import Connection
  from airflow.secrets.environment_variables import CONN_ENV_PREFIX
  from airflow.security import permissions
  from airflow.utils.session import provide_session
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_user
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_connections
  from tests.test_utils.www import _check_last_log
label_desc: Use image node_id 5 for calling the TestGetConnectionsPagination obj's underlying member method code with example usage: obj.test_should_return_conf_max_if_req_max_above_conf(session) without return types