def get_env_feature_states_list_with_api(client: APIClient, query_params: dict) -> dict:  # type: ignore[type-arg]
    """
    Returns feature states using the provided test client.

    :param client: DRF api client to use to make the request
    :param query_params: A Mapping object used as query params for filtering

    """
    url = reverse("api-v1:features:featurestates-list")
    response = get_json_response(client, url, query_params)
    return response

    Returns feature states using the provided test client.

    :param client: DRF api client to use to make the request
    :param query_params: A Mapping object used as query params for filtering

    
api/tests/integration/helpers.py