We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f0dc6 commit 3d7c887Copy full SHA for 3d7c887
tests/test_csvparser.py
@@ -1,7 +1,10 @@
1
import io
2
+
3
import pytest
4
5
from prepdocslib.csvparser import CsvParser # Adjust import to the correct module
6
7
8
@pytest.mark.asyncio
9
async def test_csvparser_single_row():
10
# Mock CSV content with a single row in binary format
@@ -34,7 +37,7 @@ async def test_csvparser_multiple_rows():
34
37
assert pages[0].page_num == 0
35
38
assert pages[0].offset == 0
36
39
assert pages[0].text == "value1,value2,value3"
-
40
41
assert pages[1].page_num == 1
42
assert pages[1].offset == len(pages[0].text) + 1 # Length of the first row plus a newline
43
assert pages[1].text == "value4,value5,value6"
0 commit comments