def mock_init_ok(monkeypatch):
    """Creating of mock_get method from the class, and monkeypatch application.

    It will return a 200 status code, emulating the correct login.
    """
    from argilla_v1 import __version__ as rg_version

    def mock_get_info(*args, **kwargs):
        return ApiInfo(version=rg_version)

    def mock_whoami(*args, **kwargs) -> Response:
        return UserModel(
            id=uuid4(),
            username="mock_username",
            first_name="mock_first_name",
            role="admin",
            api_key="mock_api_key",
            workspaces=["mock_workspace"],
            inserted_at=datetime.datetime.now(),
            updated_at=datetime.datetime.now(),
        )

    def mock_list_workspaces(*args, **kwargs):
        return Response(
            content=b"",
            parsed=[
                WorkspaceModel(
                    id=uuid4(),
                    name="mock_workspace",
                    inserted_at=datetime.datetime.utcnow(),
                    updated_at=datetime.datetime.utcnow(),
                )
            ],
            status_code=200,
            headers={},
        )

    monkeypatch.setattr(Status, "get_info", mock_get_info)
    monkeypatch.setattr(users_api, "whoami", mock_whoami)
    monkeypatch.setattr(workspaces_api_v1, "list_workspaces_me", mock_list_workspaces)
Creating of mock_get method from the class, and monkeypatch application.

    It will return a 200 status code, emulating the correct login.
    
argilla-v1/tests/integration/client/test_api.py