def test_init_correct(mock_init_ok):
    """Testing correct default initialization

    It checks if the _client created is a argillaClient object.
    """

    client = active_client()

    assert active_client().http_client == AuthenticatedClient(
        base_url="http://localhost:6900",
        token=DEFAULT_API_KEY,
        timeout=60.0,
        headers={WORKSPACE_HEADER_NAME: client.user.username},
    )

    url = "mock_url"
    api_key = "mock_api_key"
    workspace_name = client.user.workspaces[0]

    init(api_url=url, api_key=api_key, workspace=workspace_name, timeout=42)
    assert active_client().http_client == AuthenticatedClient(
        base_url=url,
        token=api_key,
        timeout=42,
        headers={WORKSPACE_HEADER_NAME: workspace_name},
    )
Testing correct default initialization

    It checks if the _client created is a argillaClient object.
    
argilla-v1/tests/integration/client/test_api.py