def test_empty_filebased_loader(mocker: MockerFixture, create_empty_file) -> None:
    """Test basic file based csv loader."""
    mocker.patch.multiple(
        "requests",
        get=MockResponse(json_data={"data": ""}, status_code=200),
        post=MockResponse(json_data={"data": ""}, status_code=200),
    )

    file_path = f"{Path().resolve()}/{csv_empty_file_name}"

    # Exercise
    loader = PebbloSafeReader(
        CSVReader(),
        "dummy_app_name",
        "dummy_owner",
        "dummy_description",
    )
    result = loader.load_data(file=Path(file_path))

    # Assert
    assert result[0].text == ""
    assert result[0].metadata == {"filename": "test_empty.csv", "extension": ".csv"}
Test basic file based csv loader.
llama-index-integrations/readers/llama-index-readers-pebblo/tests/test_readers_pebblo.py