Exemple #1
0
 def test_fork_list(self):
     recipe = new_recipe(**sunny_side_up)
     recipe = new_recipe(**begun_bhaja)
     fork = fork_recipe(2, recipe.id)
     self.assertEqual(get_forks(recipe.id)[0].id, fork.id)
Exemple #2
0
 def test_fork_list(self):
     recipe = new_recipe(**sunny_side_up)
     recipe = new_recipe(**begun_bhaja)
     fork = fork_recipe(2, recipe.id)
     self.assertEqual(get_forks(recipe.id)[0].id, fork.id)
Exemple #3
0
 def get(self):
     args = parser.parse_args()
     recipe_id = args.get('recipe_id')
     if not recipe_id:
         raise BadRequest
     return get_forks(recipe_id)
Exemple #4
0
 def get(self):
     args = parser.parse_args()
     recipe_id = args.get('recipe_id')
     if not recipe_id:
         raise BadRequest
     return get_forks(recipe_id)