Fixed broken test and added ability to put session summary into GM notes.

This commit is contained in:
Mark Wolfman
2021-06-16 10:03:35 -05:00
parent a9c893a4e3
commit c5672f950f
20 changed files with 156 additions and 80 deletions
+9 -1
View File
@@ -174,6 +174,14 @@ class TexCreatorTestCase(unittest.TestCase):
def test_create_party_summary_tex(self):
char = self.new_character()
tex = make_sheets.create_party_summary_tex(party=[char])
tex = make_sheets.create_party_summary_tex(party=[char], summary_rst="")
self.assertIn(r"\section*{Party}", tex)
self.assertIn(char.name, tex)
def test_create_summary_tex(self):
rst = "The party's create *adventure*."
tex = make_sheets.create_party_summary_tex(party=[], summary_rst=rst)
self.assertIn(r"\section*{Summary}", tex)
# Check that the RST is parsed
self.assertIn(r"\emph{adventure}", tex)