Пример #1
0
 def setUp(self):
   self.config = json.loads(CONFIG_JSON)
   self.soups = {
     'index': bs4.BeautifulSoup(INDEX_HTML),
     'subdir/page1': bs4.BeautifulSoup(P1_HTML),
     'subdir/page2': bs4.BeautifulSoup(P2_HTML),
   }
   self.precomputed = sitegen.precompute(self.config, self.soups)
Пример #2
0
 def setUp(self):
     self.config = json.loads(CONFIG_JSON)
     self.soups = {
         'index': bs4.BeautifulSoup(INDEX_HTML),
         'subdir/page1': bs4.BeautifulSoup(P1_HTML),
         'subdir/page2': bs4.BeautifulSoup(P2_HTML),
     }
     self.precomputed = sitegen.precompute(self.config, self.soups)
Пример #3
0
 def setUp(self):
     self.config = json.loads(CONFIG_JSON)
     self.soups = {
         "index": bs4.BeautifulSoup(INDEX_HTML, "html.parser"),
         "subdir/page1": bs4.BeautifulSoup(P1_HTML, "html.parser"),
         "subdir/page2": bs4.BeautifulSoup(P2_HTML, "html.parser"),
         "subdir/page2_no_toc": bs4.BeautifulSoup(P2_HTML, "html.parser"),
     }
     self.precomputed = sitegen.precompute(self.config, self.soups)