Beispiel #1
0
 def test_happy(self) -> None:
     """Tests the happy path."""
     streets = "no"
     relation_name = "gazdagret"
     items: List[yattag.doc.Doc] = []
     webframe.fill_missing_header_items(streets, relation_name, items)
     html = items[0].getvalue()
     self.assertIn("Missing house numbers", html)
     self.assertNotIn("Missing streets", html)
Beispiel #2
0
 def test_happy(self) -> None:
     """Tests the happy path."""
     streets = "no"
     relation_name = "gazdagret"
     items: List[yattag.doc.Doc] = []
     additional_housenumbers = True
     ctx = test_context.make_test_context()
     webframe.fill_missing_header_items(ctx, streets,
                                        additional_housenumbers,
                                        relation_name, items)
     html = items[0].getvalue()
     self.assertIn("Missing house numbers", html)
     self.assertNotIn("Missing streets", html)