Skip to content

Commit 3d7c887

Browse files
authored
Update test_csvparser.py
Formatted the file
1 parent e4f0dc6 commit 3d7c887

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_csvparser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import io
2+
23
import pytest
4+
35
from prepdocslib.csvparser import CsvParser # Adjust import to the correct module
46

7+
58
@pytest.mark.asyncio
69
async def test_csvparser_single_row():
710
# Mock CSV content with a single row in binary format
@@ -34,7 +37,7 @@ async def test_csvparser_multiple_rows():
3437
assert pages[0].page_num == 0
3538
assert pages[0].offset == 0
3639
assert pages[0].text == "value1,value2,value3"
37-
40+
3841
assert pages[1].page_num == 1
3942
assert pages[1].offset == len(pages[0].text) + 1 # Length of the first row plus a newline
4043
assert pages[1].text == "value4,value5,value6"

0 commit comments

Comments
 (0)