Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 67 additions & 53 deletions atable/recipes/fixtures/tests.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -66,7 +129,6 @@
licence: Public domain
meal_type: meal
name: omni recipe 1
parent_recipes: []
parts: 4
picture: ''
preparation_time: null
Expand All @@ -81,7 +143,6 @@
licence: Public domain
meal_type: meal
name: veggie recipe 1
parent_recipes: []
parts: 2
picture: ''
preparation_time: null
Expand All @@ -96,7 +157,6 @@
licence: Public domain
meal_type: dessert
name: vegan recipe 1
parent_recipes: []
parts: 3
picture: ''
preparation_time: null
Expand All @@ -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
Expand All @@ -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
Expand Down