Skip to content

Commit

Permalink
add tests for pdf report
Browse files Browse the repository at this point in the history
  • Loading branch information
hoishing committed Nov 13, 2024
1 parent e2dad7c commit 50c19b8
Show file tree
Hide file tree
Showing 4 changed files with 498 additions and 794 deletions.
4 changes: 2 additions & 2 deletions natal/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def element_vs_quality(self) -> Grid:
element_count[element.name] += 1
row.append(symbols)
quality_count += count
row.append(str(quality_count))
row.append(quality_count)
grid.append(row)
grid.append(
["sum"] + list(element_count.values()) + [sum(element_count.values())]
Expand Down Expand Up @@ -176,7 +176,7 @@ def full_report(self) -> str:
row2 += section(
f"{self.data2.name}'s Celestial Bodies", self.celestial_body2
)
row2 += section(report.cross_ref.title, report.cross_ref.grid)
row2 += section(self.cross_ref.title, self.cross_ref.grid)
row3 = section("Signs", self.signs) + section("Houses", self.houses)
css = Path(__file__).parent / "report.css"
html = style(css.read_text()) + main(
Expand Down
Loading

0 comments on commit 50c19b8

Please sign in to comment.