mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-11-20 21:38:28 +01:00
Hide orders&co for now
This commit is contained in:
@@ -11,7 +11,7 @@ from member.models import Club
|
||||
|
||||
from ..api.views import AllergenViewSet, BasicFoodViewSet, TransformedFoodViewSet, QRCodeViewSet, \
|
||||
DishViewSet, SupplementViewSet, OrderViewSet, FoodTransactionViewSet
|
||||
from ..models import Allergen, BasicFood, TransformedFood, QRCode, Dish, Supplement, Order, FoodTransaction
|
||||
from ..models import Allergen, BasicFood, TransformedFood, QRCode, Dish, Supplement, Order # TODO FoodTransaction
|
||||
|
||||
|
||||
class TestFood(TestCase):
|
||||
@@ -120,7 +120,7 @@ class TestFood(TestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
class TestFoodOrder(TestCase):
|
||||
'''class TestFoodOrder(TestCase):
|
||||
"""
|
||||
Test Food Order
|
||||
"""
|
||||
@@ -337,7 +337,7 @@ class TestFoodOrder(TestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertTrue(Order.objects.filter(dish=self.dish, user=self.user, served=False).exists())
|
||||
|
||||
self.assertTrue(FoodTransaction.objects.filter(order=self.order, valid=False).exists())
|
||||
self.assertTrue(FoodTransaction.objects.filter(order=self.order, valid=False).exists())'''
|
||||
|
||||
|
||||
class TestFoodAPI(TestAPI):
|
||||
|
||||
Reference in New Issue
Block a user