renamed ingredient to food

This commit is contained in:
vabene1111
2020-06-25 21:24:03 +02:00
parent 2c5e44d73c
commit f685253645
22 changed files with 83 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
from django.contrib import auth
from django.urls import reverse
from cookbook.models import Recipe, RecipeIngredient, Ingredient, Unit, Storage
from cookbook.models import Recipe, RecipeIngredient, Unit, Storage, Food
from cookbook.tests.views.test_views import TestViews
@@ -76,7 +76,7 @@ class TestEditsRecipe(TestViews):
recipe = Recipe.objects.get(pk=recipe.pk)
self.assertEqual('Changed', recipe.name)
Ingredient.objects.create(name='Egg')
Food.objects.create(name='Egg')
Unit.objects.create(name='g')
r = self.user_client_1.post(url,