Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
istride committed Jan 17, 2025
1 parent a066a73 commit 71eba31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rpft/parsers/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def parse_content_index(reader, name):
def parse_sheet(model, sheet: Sheet):
try:
return SheetParser(
RowParser(model, TemplatePreserver()),
sheet.table,
row_parser=RowParser(model, TemplatePreserver()),
context=None,
).parse_all()
except Exception as e:
Expand Down Expand Up @@ -236,11 +236,11 @@ def stream(
headers: Sequence[str] = tuple(),
rows: Sequence[Sequence[str]] = tuple(),
):
yield [(META_KEY, TABULATE_KEY, title, HEADERS_KEY), headers]
yield [META_KEY, TABULATE_KEY, title, HEADERS_KEY], headers

for i, row in enumerate(rows):
for h, v in zip(keypaths(headers), row):
yield [[title, i] + h, convert_cell(v)]
yield [title, i] + h, convert_cell(v)


def keypaths(headers):
Expand Down

0 comments on commit 71eba31

Please sign in to comment.