コード例 #1
0
ファイル: tests.py プロジェクト: PirosB3/PeopleCooks
 def test_get_all_recipe_names(self):
     recipe_names = libs.get_recipe_names(db= self.db)
     self.assertEqual(3, len(recipe_names))
コード例 #2
0
ファイル: tests.py プロジェクト: PirosB3/PeopleCooks
 def test_reset_all(self):
     libs.reset_all(db = self.db)
     self.assertEqual(0, len(libs.get_ingredient_names(db= self.db)))
     self.assertEqual(0, len(libs.get_recipe_names(db= self.db)))
コード例 #3
0
ファイル: __init__.py プロジェクト: PirosB3/PeopleCooks
def getRecipeNames():
    return 200, libs.get_recipe_names()