From 7a75b033a72ccc2e206970c4563cea2bbba71eae Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 9 Jul 2015 18:03:03 +0200 Subject: [PATCH] Update fixtures. --- atable/recipes/fixtures/tests.yaml | 120 ++++++++++++++++------------- 1 file changed, 67 insertions(+), 53 deletions(-) diff --git a/atable/recipes/fixtures/tests.yaml b/atable/recipes/fixtures/tests.yaml index f68629c..1bd8bd2 100644 --- a/atable/recipes/fixtures/tests.yaml +++ b/atable/recipes/fixtures/tests.yaml @@ -1,3 +1,39 @@ +- fields: {app_label: contenttypes, model: contenttype} + model: contenttypes.contenttype + pk: 5 +- fields: {app_label: sessions, model: session} + model: contenttypes.contenttype + pk: 6 +- fields: {app_label: recipes, model: diet} + model: contenttypes.contenttype + pk: 7 +- fields: {app_label: recipes, model: ingredient} + model: contenttypes.contenttype + pk: 8 +- fields: {app_label: recipes, model: recipeingredient} + model: contenttypes.contenttype + pk: 9 +- fields: {app_label: recipes, model: ustensil} + model: contenttypes.contenttype + pk: 10 +- fields: {app_label: recipes, model: recipe} + model: contenttypes.contenttype + pk: 11 +- fields: {app_label: recipes, model: mealparticipant} + model: contenttypes.contenttype + pk: 12 +- fields: {app_label: recipes, model: meal} + model: contenttypes.contenttype + pk: 13 +- fields: {app_label: recipes, model: session} + model: contenttypes.contenttype + pk: 15 +- fields: {app_label: thumbnail, model: kvstore} + model: contenttypes.contenttype + pk: 16 +- fields: {app_label: recipes, model: parentrecipe} + model: contenttypes.contenttype + pk: 17 - fields: {name: veggie} model: recipes.diet pk: 2 @@ -55,6 +91,33 @@ unit: g model: recipes.ingredient pk: 6 +- fields: {ingredient: 2, quantity: 1.0, recipe: 1} + model: recipes.recipeingredient + pk: 1 +- fields: {ingredient: 4, quantity: 2.0, recipe: 1} + model: recipes.recipeingredient + pk: 2 +- fields: {ingredient: 1, quantity: 1.0, recipe: 2} + model: recipes.recipeingredient + pk: 3 +- fields: {ingredient: 3, quantity: 2.0, recipe: 2} + model: recipes.recipeingredient + pk: 4 +- fields: {ingredient: 4, quantity: 3.0, recipe: 2} + model: recipes.recipeingredient + pk: 5 +- fields: {ingredient: 4, quantity: 1.0, recipe: 3} + model: recipes.recipeingredient + pk: 6 +- fields: {ingredient: 6, quantity: 2.0, recipe: 3} + model: recipes.recipeingredient + pk: 7 +- fields: {ingredient: 1, quantity: 1.0, recipe: 4} + model: recipes.recipeingredient + pk: 8 +- fields: {ingredient: 2, quantity: 2.0, recipe: 4} + model: recipes.recipeingredient + pk: 9 - fields: {name: oven} model: recipes.ustensil pk: 1 @@ -66,7 +129,6 @@ licence: Public domain meal_type: meal name: omni recipe 1 - parent_recipes: [] parts: 4 picture: '' preparation_time: null @@ -81,7 +143,6 @@ licence: Public domain meal_type: meal name: veggie recipe 1 - parent_recipes: [] parts: 2 picture: '' preparation_time: null @@ -96,7 +157,6 @@ licence: Public domain meal_type: dessert name: vegan recipe 1 - parent_recipes: [] parts: 3 picture: '' preparation_time: null @@ -111,40 +171,12 @@ licence: Public domain meal_type: meal name: gluten-free recipe 1 - parent_recipes: [] parts: 4 picture: '' preparation_time: null ustensils: [] model: recipes.recipe pk: 4 -- fields: {ingredient: 2, quantity: 1, recipe: 1} - model: recipes.recipeingredient - pk: 1 -- fields: {ingredient: 4, quantity: 2, recipe: 1} - model: recipes.recipeingredient - pk: 2 -- fields: {ingredient: 1, quantity: 1, recipe: 2} - model: recipes.recipeingredient - pk: 3 -- fields: {ingredient: 3, quantity: 2, recipe: 2} - model: recipes.recipeingredient - pk: 4 -- fields: {ingredient: 4, quantity: 3, recipe: 2} - model: recipes.recipeingredient - pk: 5 -- fields: {ingredient: 4, quantity: 1, recipe: 3} - model: recipes.recipeingredient - pk: 6 -- fields: {ingredient: 6, quantity: 2, recipe: 3} - model: recipes.recipeingredient - pk: 7 -- fields: {ingredient: 1, quantity: 1, recipe: 4} - model: recipes.recipeingredient - pk: 8 -- fields: {ingredient: 2, quantity: 2, recipe: 4} - model: recipes.recipeingredient - pk: 9 - fields: {count: 10, diet: null, meal: 1} model: recipes.mealparticipant pk: 1 @@ -161,37 +193,19 @@ model: recipes.mealparticipant pk: 5 - fields: - begin: '12:00:00' - end: '13:00:00' + date: 2015-04-23 10:00:00+00:00 name: meal 1 recipes: [1, 2] + session: null model: recipes.meal pk: 1 - fields: - begin: '19:00:00' - end: '20:00:00' + date: 2016-05-23 17:00:00+00:00 name: meal 2 recipes: [1, 3] + session: null model: recipes.meal pk: 2 -- fields: {date: 2015-05-21, meal: 1, session: 1} - model: recipes.sessionmeal - pk: 1 -- fields: {date: 2015-05-21, meal: 2, session: 1} - model: recipes.sessionmeal - pk: 2 -- fields: {date: 2015-05-22, meal: 1, session: 1} - model: recipes.sessionmeal - pk: 3 -- fields: {date: 2015-06-22, meal: 2, session: 1} - model: recipes.sessionmeal - pk: 4 -- fields: {date: 2015-04-23, meal: 1, session: 2} - model: recipes.sessionmeal - pk: 5 -- fields: {date: 2016-05-23, meal: 2, session: 2} - model: recipes.sessionmeal - pk: 6 - fields: {name: Test session} model: recipes.session pk: 1