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)
def get(self): args = parser.parse_args() recipe_id = args.get('recipe_id') if not recipe_id: raise BadRequest return get_forks(recipe_id)