def test_init_environment_url(mock_init_ok, monkeypatch):
    """Testing initialization with api_url provided via environment variable

    It checks the url in the environment variable gets passed to client.
    """
    workspace_name = "mock_workspace"
    url = "http://mock_url"
    api_key = "mock_api_key"

    monkeypatch.setenv("ARGILLA_API_URL", url)
    monkeypatch.setenv("ARGILLA_API_KEY", api_key)
    monkeypatch.setenv("ARGILLA_WORKSPACE", workspace_name)

    init()
    assert active_client()._client == AuthenticatedClient(
        base_url=url,
        token=api_key,
        timeout=60,
        headers={WORKSPACE_HEADER_NAME: workspace_name},
    )
Testing initialization with api_url provided via environment variable

    It checks the url in the environment variable gets passed to client.
    
argilla-v1/tests/integration/client/test_api.py