Ejemplo n.º 1
0
 def setUp(self):
     # tests are run from tests.py
     with open(
             os.path.join(os.path.dirname(os.path.realpath(__file__)),
                          'test_data',
                          'allrecipes.testhtml')) as file_opened:
         self.harvester_class = AllRecipes(file_opened, test=True)
Ejemplo n.º 2
0
 def setUp(self):
     # tests are run from tests.py
     with open(
             os.path.join(os.getcwd(), 'recipe_scrapers', 'tests',
                          'test_data',
                          'allrecipes.testhtml')) as file_opened:
         self.harvester_class = AllRecipes(file_opened, test=True)